|
94 | 94 | #
|
95 | 95 | # ### Methods for \Set Operations
|
96 | 96 | #
|
97 |
| -# - [|](Set.html#method-i-7C) (aliased as #union and #+) - |
| 97 | +# - [|](#method-i-7C) (aliased as #union and #+) - |
98 | 98 | # Returns a new set containing all elements from +self+
|
99 | 99 | # and all elements from a given enumerable (no duplicates).
|
100 |
| -# - [&](Set.html#method-i-26) (aliased as #intersection) - |
| 100 | +# - [&](#method-i-26) (aliased as #intersection) - |
101 | 101 | # Returns a new set containing all elements common to +self+
|
102 | 102 | # and a given enumerable.
|
103 |
| -# - [-](Set.html#method-i-2D) (aliased as #difference) - |
| 103 | +# - [-](#method-i-2D) (aliased as #difference) - |
104 | 104 | # Returns a copy of +self+ with all elements
|
105 | 105 | # in a given enumerable removed.
|
106 |
| -# - [\^](Set.html#method-i-5E) - |
| 106 | +# - [\^](#method-i-5E) - |
107 | 107 | # Returns a new set containing all elements from +self+
|
108 | 108 | # and a given enumerable except those common to both.
|
109 | 109 | #
|
110 | 110 | # ### Methods for Comparing
|
111 | 111 | #
|
112 |
| -# - [<=>](Set.html#method-i-3C-3D-3E) - |
| 112 | +# - [<=>](#method-i-3C-3D-3E) - |
113 | 113 | # Returns -1, 0, or 1 as +self+ is less than, equal to,
|
114 | 114 | # or greater than a given object.
|
115 |
| -# - [==](Set.html#method-i-3D-3D) - |
| 115 | +# - [==](#method-i-3D-3D) - |
116 | 116 | # Returns whether +self+ and a given enumerable are equal,
|
117 | 117 | # as determined by Object#eql?.
|
118 | 118 | # - \#compare_by_identity? -
|
|
127 | 127 | # Returns whether the set has no elements.
|
128 | 128 | # - \#include? (aliased as #member? and #===) -
|
129 | 129 | # Returns whether a given object is an element in the set.
|
130 |
| -# - \#subset? (aliased as [<=](Set.html#method-i-3C-3D)) - |
| 130 | +# - \#subset? (aliased as [<=](#method-i-3C-3D)) - |
131 | 131 | # Returns whether a given object is a subset of the set.
|
132 |
| -# - \#proper_subset? (aliased as [<](Set.html#method-i-3C)) - |
| 132 | +# - \#proper_subset? (aliased as [<](#method-i-3C)) - |
133 | 133 | # Returns whether a given enumerable is a proper subset of the set.
|
134 |
| -# - \#superset? (aliased as [<=](Set.html#method-i-3E-3D])) - |
| 134 | +# - \#superset? (aliased as [<=](#method-i-3E-3D])) - |
135 | 135 | # Returns whether a given enumerable is a superset of the set.
|
136 |
| -# - \#proper_superset? (aliased as [>](Set.html#method-i-3E)) - |
| 136 | +# - \#proper_superset? (aliased as [>](#method-i-3E)) - |
137 | 137 | # Returns whether a given enumerable is a proper superset of the set.
|
138 | 138 | # - \#disjoint? -
|
139 | 139 | # Returns +true+ if the set and a given enumerable
|
|
0 commit comments