Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / Enumerator / each-i.ri
Size: Mime:
U:RDoc::AnyMethod[iI"	each:ETI"Enumerator#each;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"OIterates over the block according to how this Enumerator was constructed. ;TI":If no block and no arguments are given, returns self.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading:
leveli:	textI"
Examples;T@o:RDoc::Markup::Verbatim;	[I"L"Hello, world!".scan(/\w+/)                     #=> ["Hello", "world"]
;TI"L"Hello, world!".to_enum(:scan, /\w+/).to_a      #=> ["Hello", "world"]
;TI"L"Hello, world!".to_enum(:scan).each(/\w+/).to_a #=> ["Hello", "world"]
;TI"
;TI"obj = Object.new
;TI"
;TI"&def obj.each_arg(a, b=:b, *rest)
;TI"  yield a
;TI"  yield b
;TI"  yield rest
;TI"  :method_returned
;TI"	end
;TI"
;TI"*enum = obj.to_enum :each_arg, :a, :x
;TI"
;TI"6enum.each.to_a                  #=> [:a, :x, []]
;TI".enum.each.equal?(enum)          #=> true
;TI":enum.each { |elm| elm }         #=> :method_returned
;TI"
;TI"<enum.each(:y, :z).to_a          #=> [:a, :x, [:y, :z]]
;TI"/enum.each(:y, :z).equal?(enum)  #=> false
;TI"9enum.each(:y, :z) { |elm| elm } #=> :method_returned;T:@format0:
@fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"Ûenum.each { |elm| block }                    -> obj
enum.each                                    -> enum
enum.each(*appending_args) { |elm| block }   -> obj
enum.each(*appending_args)                   -> an_enumerator
;T0[I"(*args);T@*FI"Enumerator;TcRDoc::NormalClass00