Skip to content

Commit 292baac

Browse files
committed
Repair format for What's Here
1 parent fe830a8 commit 292baac

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

lib/set.rb

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -88,134 +88,134 @@
8888
#
8989
# ### Methods for Creating a \Set
9090
#
91-
# - ::[] -
91+
# - ::[]:
9292
# Returns a new set containing the given objects.
93-
# - ::new -
93+
# - ::new:
9494
# Returns a new set containing either the given objects
9595
# (if no block given) or the return values from the called block
9696
# (if a block given).
9797
#
9898
# ### Methods for \Set Operations
9999
#
100-
# - [|](#method-i-7C) (aliased as #union and #+) -
100+
# - [|](#method-i-7C) (aliased as #union and #+):
101101
# Returns a new set containing all elements from +self+
102102
# and all elements from a given enumerable (no duplicates).
103-
# - [&](#method-i-26) (aliased as #intersection) -
103+
# - [&](#method-i-26) (aliased as #intersection):
104104
# Returns a new set containing all elements common to +self+
105105
# and a given enumerable.
106-
# - [-](#method-i-2D) (aliased as #difference) -
106+
# - [-](#method-i-2D) (aliased as #difference):
107107
# Returns a copy of +self+ with all elements
108108
# in a given enumerable removed.
109-
# - [\^](#method-i-5E) -
109+
# - [\^](#method-i-5E):
110110
# Returns a new set containing all elements from +self+
111111
# and a given enumerable except those common to both.
112112
#
113113
# ### Methods for Comparing
114114
#
115-
# - [<=>](#method-i-3C-3D-3E) -
115+
# - [<=>](#method-i-3C-3D-3E):
116116
# Returns -1, 0, or 1 as +self+ is less than, equal to,
117117
# or greater than a given object.
118-
# - [==](#method-i-3D-3D) -
118+
# - [==](#method-i-3D-3D):
119119
# Returns whether +self+ and a given enumerable are equal,
120120
# as determined by Object#eql?.
121-
# - \#compare_by_identity? -
121+
# - \#compare_by_identity?:
122122
# Returns whether the set considers only identity
123123
# when comparing elements.
124124
#
125125
# ### Methods for Querying
126126
#
127-
# - \#length (aliased as #size) -
127+
# - \#length (aliased as #size):
128128
# Returns the count of elements.
129-
# - \#empty? -
129+
# - \#empty?:
130130
# Returns whether the set has no elements.
131-
# - \#include? (aliased as #member? and #===) -
131+
# - \#include? (aliased as #member? and #===):
132132
# Returns whether a given object is an element in the set.
133-
# - \#subset? (aliased as [<=](#method-i-3C-3D)) -
133+
# - \#subset? (aliased as [<=](#method-i-3C-3D)):
134134
# Returns whether a given object is a subset of the set.
135-
# - \#proper_subset? (aliased as [<](#method-i-3C)) -
135+
# - \#proper_subset? (aliased as [<](#method-i-3C)):
136136
# Returns whether a given enumerable is a proper subset of the set.
137-
# - \#superset? (aliased as [<=](#method-i-3E-3D])) -
137+
# - \#superset? (aliased as [<=](#method-i-3E-3D])):
138138
# Returns whether a given enumerable is a superset of the set.
139-
# - \#proper_superset? (aliased as [>](#method-i-3E)) -
139+
# - \#proper_superset? (aliased as [>](#method-i-3E)):
140140
# Returns whether a given enumerable is a proper superset of the set.
141-
# - \#disjoint? -
141+
# - \#disjoint?:
142142
# Returns +true+ if the set and a given enumerable
143143
# have no common elements, +false+ otherwise.
144-
# - \#intersect? -
145-
# Returns +true+ if the set and a given enumerable -
144+
# - \#intersect?:
145+
# Returns +true+ if the set and a given enumerable:
146146
# have any common elements, +false+ otherwise.
147-
# - \#compare_by_identity? -
147+
# - \#compare_by_identity?:
148148
# Returns whether the set considers only identity
149149
# when comparing elements.
150150
#
151151
# ### Methods for Assigning
152152
#
153-
# - \#add (aliased as #<<) -
153+
# - \#add (aliased as #<<):
154154
# Adds a given object to the set; returns +self+.
155-
# - \#add? -
155+
# - \#add?:
156156
# If the given object is not an element in the set,
157157
# adds it and returns +self+; otherwise, returns +nil+.
158-
# - \#merge -
158+
# - \#merge:
159159
# Adds each given object to the set; returns +self+.
160-
# - \#replace -
160+
# - \#replace:
161161
# Replaces the contents of the set with the contents
162162
# of a given enumerable.
163163
#
164164
# ### Methods for Deleting
165165
#
166-
# - \#clear -
166+
# - \#clear:
167167
# Removes all elements in the set; returns +self+.
168-
# - \#delete -
168+
# - \#delete:
169169
# Removes a given object from the set; returns +self+.
170-
# - \#delete? -
170+
# - \#delete?:
171171
# If the given object is an element in the set,
172172
# removes it and returns +self+; otherwise, returns +nil+.
173-
# - \#subtract -
173+
# - \#subtract:
174174
# Removes each given object from the set; returns +self+.
175175
# - \#delete_if - Removes elements specified by a given block.
176-
# - \#select! (aliased as #filter!) -
176+
# - \#select! (aliased as #filter!):
177177
# Removes elements not specified by a given block.
178-
# - \#keep_if -
178+
# - \#keep_if:
179179
# Removes elements not specified by a given block.
180180
# - \#reject!
181181
# Removes elements specified by a given block.
182182
#
183183
# ### Methods for Converting
184184
#
185-
# - \#classify -
185+
# - \#classify:
186186
# Returns a hash that classifies the elements,
187187
# as determined by the given block.
188-
# - \#collect! (aliased as #map!) -
188+
# - \#collect! (aliased as #map!):
189189
# Replaces each element with a block return-value.
190-
# - \#divide -
190+
# - \#divide:
191191
# Returns a hash that classifies the elements,
192192
# as determined by the given block;
193193
# differs from #classify in that the block may accept
194194
# either one or two arguments.
195-
# - \#flatten -
195+
# - \#flatten:
196196
# Returns a new set that is a recursive flattening of +self+.
197-
# \#flatten! -
197+
# \#flatten!:
198198
# Replaces each nested set in +self+ with the elements from that set.
199-
# - \#inspect (aliased as #to_s) -
199+
# - \#inspect (aliased as #to_s):
200200
# Returns a string displaying the elements.
201-
# - \#join -
201+
# - \#join:
202202
# Returns a string containing all elements, converted to strings
203203
# as needed, and joined by the given record separator.
204-
# - \#to_a -
204+
# - \#to_a:
205205
# Returns an array containing all set elements.
206-
# - \#to_set -
206+
# - \#to_set:
207207
# Returns +self+ if given no arguments and no block;
208208
# with a block given, returns a new set consisting of block
209209
# return values.
210210
#
211211
# ### Methods for Iterating
212212
#
213-
# - \#each -
213+
# - \#each:
214214
# Calls the block with each successive element; returns +self+.
215215
#
216216
# ### Other Methods
217217
#
218-
# - \#reset -
218+
# - \#reset:
219219
# Resets the internal state; useful if an object
220220
# has been modified while an element in the set.
221221
#

0 commit comments

Comments
 (0)