Removed #beginning_of method as it's identical to

#round, which has a #beginning_of alias already.
*slaps self in face*
This commit is contained in:
2010-07-29 13:47:14 +03:00
parent 820057f842
commit ce715604a4

View File

@@ -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}")