lib/polyfill/v2_4/enumerator/lazy/instance/chunk_while.rb in polyfill-0.4.0 vs lib/polyfill/v2_4/enumerator/lazy/instance/chunk_while.rb in polyfill-0.5.0
- old
+ new
@@ -3,9 +3,13 @@
module Enumerator
module Lazy
module Instance
module ChunkWhile
module Method
+ Utils.when_ruby_below('2.3') do
+ using V2_3::Enumerable::Instance::ChunkWhile
+ end
+
def chunk_while
super.lazy
end
end