From ce715604a46d24ecc4d9e08d15ad1db1d364d67a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 29 Jul 2010 13:47:14 +0300 Subject: [PATCH] Removed #beginning_of method as it's identical to #round, which has a #beginning_of alias already. *slaps self in face* --- lib/time_ext/core_ext/time/calculations.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/time_ext/core_ext/time/calculations.rb b/lib/time_ext/core_ext/time/calculations.rb index 8940beb..56882d1 100644 --- a/lib/time_ext/core_ext/time/calculations.rb +++ b/lib/time_ext/core_ext/time/calculations.rb @@ -159,11 +159,6 @@ class Time since((quarters * 3).months) end - # Returns a new Time representing the start of the unit specified (defaults to second). - def beginning_of(unit = :sec) - send("beginning_of_#{unit}") - end - # Returns a new Time representing the end of the unit specified (defaults to second). def end_of(unit = :sec) send("end_of_#{unit}")