Module: Enumerable
- Included in:
- Color::Palette::AdobeColor, Color::Palette::Gimp, OpenSSL::Buffering, REXML::AttlistDecl, REXML::Elements, REXML::Parent, REXML::SyncEnumerator, Set, StringInput
- Defined in:
- lib/extensions/set/set.rb,
lib/extensions/rhoxml/rexml/set.rb
Instance Method Summary collapse
-
#to_set(klass = Set, *args, &block) ⇒ Object
Makes a set from the enumerable object with given arguments.
Instance Method Details
#to_set(klass = Set, *args, &block) ⇒ Object
Makes a set from the enumerable object with given arguments. Needs to require “set” to use this method.
622 623 624 |
# File 'lib/extensions/set/set.rb', line 622 def to_set(klass = Set, *args, &block) klass.new(self, *args, &block) end |