Module: Colors
- Included in:
- WeatherReporter
- Defined in:
- lib/meteo/colors.rb
Instance Method Summary collapse
- #background ⇒ Object
- #clouds ⇒ Object
- #dashes ⇒ Object
- #data ⇒ Object
- #delimiter ⇒ Object
- #fog ⇒ Object
- #moon ⇒ Object
- #rain ⇒ Object
- #snow ⇒ Object
- #stop ⇒ Object
- #sun ⇒ Object
- #text ⇒ Object
- #thunderstorm ⇒ Object
Instance Method Details
#background ⇒ Object
32 33 34 |
# File 'lib/meteo/colors.rb', line 32 def background "\033[44m" end |
#clouds ⇒ Object
12 13 14 |
# File 'lib/meteo/colors.rb', line 12 def clouds "\033[37;1m\xe2\x98\x81" end |
#dashes ⇒ Object
36 37 38 |
# File 'lib/meteo/colors.rb', line 36 def dashes "\033[34m-" end |
#data ⇒ Object
48 49 50 |
# File 'lib/meteo/colors.rb', line 48 def data "\033[33;1m" end |
#delimiter ⇒ Object
44 45 46 |
# File 'lib/meteo/colors.rb', line 44 def delimiter "\033[35m=>" end |
#fog ⇒ Object
20 21 22 |
# File 'lib/meteo/colors.rb', line 20 def fog "\033[37;1m\xe2\x96\x92" end |
#moon ⇒ Object
8 9 10 |
# File 'lib/meteo/colors.rb', line 8 def moon "\033[36m\xe2\x98\xbd" end |
#rain ⇒ Object
16 17 18 |
# File 'lib/meteo/colors.rb', line 16 def rain "\xe2\x98\x94" end |
#snow ⇒ Object
24 25 26 |
# File 'lib/meteo/colors.rb', line 24 def snow "\033[37;1m\xe2\x9d\x84" end |
#stop ⇒ Object
52 53 54 |
# File 'lib/meteo/colors.rb', line 52 def stop "\033[0m" end |
#sun ⇒ Object
4 5 6 |
# File 'lib/meteo/colors.rb', line 4 def sun "\033[33;1m\xe2\x98\x80" end |
#text ⇒ Object
40 41 42 |
# File 'lib/meteo/colors.rb', line 40 def text "\033[36;1m" end |
#thunderstorm ⇒ Object
28 29 30 |
# File 'lib/meteo/colors.rb', line 28 def thunderstorm "\xe2\x9a\xa1" end |