lib/hublot/pretty.rb in hublot-0.0.5 vs lib/hublot/pretty.rb in hublot-0.0.6
- old
+ new
@@ -3,10 +3,10 @@
# Clock argument for testing; defaults to Time
def pretty(clock=Time.now)
@expired = (clock-self).to_i
@today = clock.strftime('%A')
@created = self.to_time.strftime('%A')
- # Require Rails date; test in irb Date::daynames
+
@days = {
"Monday" => 1,
"Tuesday" => 2,
"Wednesday" => 3,
"Thursday" => 4,