# File lib/backports/2.0.0/enumerable/lazy.rb, line 26 def initialize(obj) if obj.is_a?(@@lazy_with_no_block) @inspect_info = obj return super(@receiver = obj.object, @method = obj.method || :each, * @args = obj.args) end raise ArgumentError, "must supply a block" unless block_given? @receiver = obj super() do |yielder, *args| catch @@done do obj.each(*args) do |*x| yield yielder, *x end end end end