Object
just for internal
# File mrbgems/mruby-enumerator/mrblib/enumerator.rb, line 529 def initialize(&block) raise TypeError, "wrong argument type #{self.class} (expected Proc)" unless block.kind_of? Proc @proc = block end
# File mrbgems/mruby-enumerator/mrblib/enumerator.rb, line 535 def each(*args, &block) args.unshift Yielder.new(&block) @proc.call(*args) end
This page was generated for Ruby mruby
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.44.0.