lib/modalsupport/enumerable.rb in modalsupport-0.3.0 vs lib/modalsupport/enumerable.rb in modalsupport-0.4.0

- old
+ new

@@ -2,10 +2,10 @@ def grep_each(pattern) grep(pattern){|str| yield(Regexp.last_match)} end - if RUBY_VERSION < "1.8.7" + if_ruby_version :<, "1.8.7" do require 'enumerator' alias enumerator_each_slice each_slice def each_slice(n, &blk) if blk # each_slice is implemented in the enumerator extension, requiring a block, and is used by enum_slice