Module: TableInspector::Text
Instance Method Summary collapse
- #blue(text) ⇒ Object
- #bold(text) ⇒ Object
- #break_line ⇒ Object
- #cyan(text) ⇒ Object
- #green(text) ⇒ Object
- #red(text) ⇒ Object
- #yellow(text) ⇒ Object
Instance Method Details
#blue(text) ⇒ Object
26 27 28 |
# File 'lib/table_inspector/text.rb', line 26 def blue(text) "\e[34m#{text}\e[0m" end |
#bold(text) ⇒ Object
6 7 8 |
# File 'lib/table_inspector/text.rb', line 6 def bold(text) "\033[1m#{text}\033[0m" end |
#break_line ⇒ Object
10 11 12 |
# File 'lib/table_inspector/text.rb', line 10 def break_line puts "\n" end |
#cyan(text) ⇒ Object
30 31 32 |
# File 'lib/table_inspector/text.rb', line 30 def cyan(text) "\e[36m#{text}\e[0m" end |
#green(text) ⇒ Object
18 19 20 |
# File 'lib/table_inspector/text.rb', line 18 def green(text) "\e[32m#{text}\e[0m" end |
#red(text) ⇒ Object
14 15 16 |
# File 'lib/table_inspector/text.rb', line 14 def red(text) "\e[31m#{text}\e[0m" end |
#yellow(text) ⇒ Object
22 23 24 |
# File 'lib/table_inspector/text.rb', line 22 def yellow(text) "\e[33m#{text}\e[0m" end |