D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Set
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:ETI" Set::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"NCreates a new set containing the elements of the given enumerable object.;To; ; [I"SIf a block is given, the elements of enum are preprocessed by the given block.;To:RDoc::Markup::Verbatim; [ I">Set.new([1, 2]) #=> #<Set: {1, 2}> ;TI">Set.new([1, 2, 1]) #=> #<Set: {1, 2}> ;TI"DSet.new([1, 'c', :s]) #=> #<Set: {1, "c", :s}> ;TI"GSet.new(1..5) #=> #<Set: {1, 2, 3, 4, 5}> ;TI"ASet.new([1, 2, 3]) { |x| x * x } #=> #<Set: {1, 4, 9}> ;T:@format0: @fileI"lib/set.rb;T:0@omit_headings_from_table_of_contents_below00I"o;T[ I"(enum = nil);T@FI"Set;TcRDoc::NormalClass00