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 / Enumerable / one%3f-i.ri
Size: Mime:
U:RDoc::AnyMethod[iI"	one?:ETI"Enumerable#one?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[
I"JPasses each element of the collection to the given block. The method ;TI"Freturns <code>true</code> if the block returns <code>true</code> ;TI"Lexactly once. If the block is not given, <code>one?</code> will return ;TI"H<code>true</code> only if exactly one of the collection members is ;TI"
true.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[
I"A%w{ant bear cat}.one? { |word| word.length == 4 }  #=> true
;TI"B%w{ant bear cat}.one? { |word| word.length > 4 }   #=> false
;TI"B%w{ant bear cat}.one? { |word| word.length < 4 }   #=> false
;TI"B[ nil, true, 99 ].one?                             #=> false
;TI"@[ nil, true, false ].one?                          #=> true;T:@format0:
@fileI"enum.c;T:0@omit_headings_from_table_of_contents_below0I"4enum.one? [{ |obj| block }]   -> true or false
;T0[I"();T@FI"Enumerable;TcRDoc::NormalModule00