mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-20 12:21:16 -05:00
Fix assignment typo in boodoo.rb
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user