search for: take_whil

Displaying 1 result from an estimated 1 matches for "take_whil".

Did you mean: take_while
2013 Feb 11
5
split dates array with take_while does not work ?
I wonder why ruby core method ''take_while'' does not work as expected in the below Rails console example: irb(main):003:0> arr = [] => [] irb(main):004:0> arr << Date.today - 15.days => [Sun, 27 Jan 2013] irb(main):005:0> arr << Date.today - 25.days => [Sun, 27 Jan 2013, Thu, 17 Jan 2013] irb(main):...