Top Level Namespace
Instance Method Summary collapse
- #puts_blue(*strings) ⇒ Object
- #puts_cyan(*strings) ⇒ Object
- #puts_green(*strings) ⇒ Object
- #puts_grey(*strings) ⇒ Object
- #puts_purple(*strings) ⇒ Object
- #puts_red(*strings) ⇒ Object
- #puts_yellow(*strings) ⇒ Object
Instance Method Details
#puts_blue(*strings) ⇒ Object
21 22 23 24 25 |
# File 'lib/puts_color.rb', line 21 def puts_blue(*strings) strings.each do |string| puts "\033[0;34m" + string + "\033[0m" end end |
#puts_cyan(*strings) ⇒ Object
33 34 35 36 37 |
# File 'lib/puts_color.rb', line 33 def puts_cyan(*strings) strings.each do |string| puts "\033[0;36m" + string + "\033[0m" end end |
#puts_green(*strings) ⇒ Object
9 10 11 12 13 |
# File 'lib/puts_color.rb', line 9 def puts_green(*strings) strings.each do |string| puts "\033[0;32m" + string + "\033[0m" end end |
#puts_grey(*strings) ⇒ Object
39 40 41 42 43 |
# File 'lib/puts_color.rb', line 39 def puts_grey(*strings) strings.each do |string| puts "\033[0;37m" + string + "\033[0m" end end |
#puts_purple(*strings) ⇒ Object
27 28 29 30 31 |
# File 'lib/puts_color.rb', line 27 def puts_purple(*strings) strings.each do |string| puts "\033[0;35m" + string + "\033[0m" end end |
#puts_red(*strings) ⇒ Object
3 4 5 6 7 |
# File 'lib/puts_color.rb', line 3 def puts_red(*strings) strings.each do |string| puts "\033[0;31m" + string + "\033[0m" end end |
#puts_yellow(*strings) ⇒ Object
15 16 17 18 19 |
# File 'lib/puts_color.rb', line 15 def puts_yellow(*strings) strings.each do |string| puts "\033[0;33m" + string + "\033[0m" end end |