【文件属性】:
文件名称:fprinter:Ruby宝石打印机
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-20 10:15:51
Ruby
F打印机
要使用,只需用所需的样式调用FPrinter即可,例如:
FPrinter . blue ( "Some blue text" )
这将以蓝色打印,而不会影响其他打印输出。
或者,致电! 更改所有输出直到reset! 被称为,如下所示
print "Some regular text"
FPrinter . blue!
print "Some blue text"
print "Some more blue text"
FPrinter . yellow!
print "Some yellow text"
FPrinter . reset!
print "some regular text again"
您可以使用以下命令:
bold(string)或bold! :以粗体显示字符串
blink(string)或blink! :打印闪烁的字符串
underline(s
【文件预览】:
fprinter-master
----fprinter.gemspec(889B)
----lib()
--------fprinter.rb(121B)
--------fprinter()
----test()
--------test_fprinter.rb(3KB)
----README.md(2KB)
----licence.txt(1KB)
----.gitignore(159B)
----CHANGELOG.md(249B)