Fix assignment typo in boodoo.rb

This commit is contained in:
Joel McCoy
2015-04-16 17:17:08 -04:00
parent 6c666b076e
commit 11a0066d4d

View File

@@ -32,7 +32,7 @@ module Ebooks::Boodoo
end end
def age(since, now: Time.now, unit: :in_hours) def age(since, now: Time.now, unit: :in_hours)
since |== Time.new(1986, 2, 8) since ||= Time.new(1986, 2, 8)
unit = unit.to_sym unit = unit.to_sym
TimeDifference.between(since, now).method(unit).call TimeDifference.between(since, now).method(unit).call
end end