set |
class Set < Object |
Public Methods |
Create a new set, using the passed array as an intial set of elements
array | an array of initial elements, each passed as a separate parameter. |
---|
An alias for Set.new
Add a new element to a Set.
Returns: the new element.
[]= is an alias for store.
Remove all the items from the set.
Returns: self.
Call the given block for every element in the Set.
Returns: the last value from the last call to yield.
Remove an element from a Set.
Returns: self
has_key? is an alias for has?.
& is an alias for intersect.
| is an alias for union.
Mixins |
Enumerable | |
---|---|
Comparable | |
EnumerableContainer |