mirror of
https://github.com/jimeh/time_ext.git
synced 2026-02-19 13:26:39 +00:00
Some method naming/calling consistency.
This commit is contained in:
@@ -44,13 +44,13 @@ class Time
|
|||||||
|
|
||||||
# Short-hand for seconds_ago(1).
|
# Short-hand for seconds_ago(1).
|
||||||
def prev_second
|
def prev_second
|
||||||
ago(1)
|
seconds_ago(1)
|
||||||
end
|
end
|
||||||
alias :prev_sec :prev_second
|
alias :prev_sec :prev_second
|
||||||
|
|
||||||
# Short-hand for seconds_since(1).
|
# Short-hand for seconds_since(1).
|
||||||
def next_second
|
def next_second
|
||||||
since(1)
|
seconds_since(1)
|
||||||
end
|
end
|
||||||
alias :next_sec :next_second
|
alias :next_sec :next_second
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user