From 11a0066d4d8e28f8bc3bd81e4a6d48a7d2e073a7 Mon Sep 17 00:00:00 2001 From: Joel McCoy Date: Thu, 16 Apr 2015 17:17:08 -0400 Subject: [PATCH] Fix assignment typo in boodoo.rb --- boodoo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boodoo.rb b/boodoo.rb index d82ed84..27a32de 100644 --- a/boodoo.rb +++ b/boodoo.rb @@ -32,7 +32,7 @@ module Ebooks::Boodoo end 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 TimeDifference.between(since, now).method(unit).call end