mirror of
https://github.com/jimeh/time_ext.git
synced 2026-02-19 13:26:39 +00:00
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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user