ba33dfec57
added min and sec aliases to minutes and seconds
...
methods respectively to Numeric for unit
consitency
2010-08-11 13:51:21 +03:00
ac1ad2dba4
big oops, yes, I suck...
2010-08-05 12:56:26 +03:00
b8ba272b95
added include_end option to #iterate
2010-08-04 18:26:14 +03:00
3201485eaf
Added #of_the / #of range modifier which is used
...
like #until and #from. Except #of_the makes the
iteration walk through each unit of time passed to
the #each / #map method, from the beginning till
end of unit passed to #of_the.
Example:
Time.now.each_hour.of_the(:month) { |t puts t }
#=> iterates over each over of the whole current month
2010-08-04 17:58:58 +03:00
77d9d67ed1
merged MethodChain and BackwardsCompatibility
...
modules into a single TimeExt::Support module
2010-08-04 17:28:22 +03:00
66f661aef8
created a #map alias for #map_each
2010-08-03 14:07:58 +03:00
e6bd7fc000
restructured classes/modules and files
2010-08-03 14:03:32 +03:00
c7e46c25d1
Added #until's sister method, #from.
2010-07-29 14:26:31 +03:00
20e1957add
Define dynamic iteration methods in a faster and
...
cleaner way.
2010-07-29 14:02:50 +03:00
eb6ee05a3e
Reordered iteration methods.
2010-07-29 14:01:12 +03:00
d052a720e4
#until does not need to add itself to the method
...
chain.
2010-07-29 13:49:17 +03:00
ef5e1fb327
Some method naming/calling consistency.
2010-07-29 13:47:48 +03:00
ce715604a4
Removed #beginning_of method as it's identical to
...
#round, which has a #beginning_of alias already.
*slaps self in face*
2010-07-29 13:47:14 +03:00
438cdd5b68
Interation methods #each, #map_each and more are
...
implemented and working. Also restructured files
again.
2010-07-29 04:25:42 +03:00
d6b65dbc01
restructured files a bit
2010-07-29 03:34:31 +03:00
7b8cc60ae3
added description to Time#round
2010-07-27 20:06:31 +03:00
db341c6d46
updated code comments
2010-07-27 19:25:03 +03:00
d0a2534f34
lots of changes
2010-07-27 19:18:18 +03:00
b69c53776a
reordered methods
2010-07-27 17:35:24 +03:00
d45766d4e8
initial import of time extensions
2010-07-27 17:19:35 +03:00
b42704f9bd
Initial commit to time_ext.
2010-07-27 14:14:02 +03:00