Object
just for internal
# File mrbgems/mruby-enumerator/mrblib/enumerator.rb, line 543 def initialize(&block) raise LocalJumpError, "no block given" unless block @proc = block end
# File mrbgems/mruby-enumerator/mrblib/enumerator.rb, line 553 def << *args self.yield(*args) self end
# File mrbgems/mruby-enumerator/mrblib/enumerator.rb, line 549 def yield(*args) @proc.call(*args) end
This page was generated for Ruby mruby
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.44.0.