lib/meteo/reporter.rb in meteo-1.0.1 vs lib/meteo/reporter.rb in meteo-1.0.2
- old
+ new
@@ -69,10 +69,17 @@
when 'Rain'
"rain"
when 'Fog'
"fog"
+
+ when 'Snow'
+ "snow"
+
+ when 'Thunderstorm'
+ "thunderstorm"
+
else
(period == "night") ? 'moon' : 'sun'
end
end
@@ -89,6 +96,23 @@
end
def clouds
"\033[37;1m\xe2\x98\x81"
end
+
+ def rain
+ "\xe2\x98\x94"
+ end
+
+ def fog
+ "\033[37;1m\xe2\x96\x92"
+ end
+
+ def snow
+ "\033[37;1m\xe2\x9d\x84"
+ end
+
+ def thunderstorm
+ "\xe2\x9a\xa1"
+ end
+
end