%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Set/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/Set/classify-i.ri

U:RDoc::AnyMethod[iI"
classify:EFI"Set#classify;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[	I"CClassifies the set by the return value of the given block and ;TI"Greturns a hash of {value => set of elements} pairs.  The block is ;TI"Ecalled once for each element of the set, passing the element as ;TI"parameter.;To:RDoc::Markup::BlankLineo;
;	[I"
e.g.:;T@o:RDoc::Markup::Verbatim;	[I"require 'set'
;TI"'files = Set.new(Dir.glob("*.rb"))
;TI"6hash = files.classify { |f| File.mtime(f).year }
;TI"5p hash    # => {2000=>#<Set: {"a.rb", "b.rb"}>,
;TI"=          #     2001=>#<Set: {"c.rb", "d.rb", "e.rb"}>,
;TI"-          #     2002=>#<Set: {"f.rb"}>}
;T:@format0o;
;	[I"0Returns an enumerator if no block is given.;T:
@fileI"lib/set.rb;T:0@omit_headings_from_table_of_contents_below00I"o;F[I"();T@ FI"Set;TcRDoc::NormalClass00

Zerion Mini Shell 1.0