ruby-changes:71750
From: BurdetteLamar <ko1@a...>
Date: Sat, 16 Apr 2022 15:34:51 +0900 (JST)
Subject: [ruby-changes:71750] 723debc9a9 (master): [ruby/set] Repair format for What's Here
https://git.ruby-lang.org/ruby.git/commit/?id=723debc9a9 From 723debc9a99a577e2da2f209c094852718a58ffa Mon Sep 17 00:00:00 2001 From: BurdetteLamar <BurdetteLamar@Y...> Date: Wed, 30 Mar 2022 14:10:20 -0500 Subject: [ruby/set] Repair format for What's Here https://github.com/ruby/set/commit/292baacb60 --- lib/set.rb | 82 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/lib/set.rb b/lib/set.rb index 852c13a534..54bcc7b7e2 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -88,134 +88,134 @@ https://github.com/ruby/ruby/blob/trunk/lib/set.rb#L88 # # ### Methods for Creating a \Set # -# - ::[] - +# - ::[]: # Returns a new set containing the given objects. -# - ::new - +# - ::new: # Returns a new set containing either the given objects # (if no block given) or the return values from the called block # (if a block given). # # ### Methods for \Set Operations # -# - [|](#method-i-7C) (aliased as #union and #+) - +# - [|](#method-i-7C) (aliased as #union and #+): # Returns a new set containing all elements from +self+ # and all elements from a given enumerable (no duplicates). -# - [&](#method-i-26) (aliased as #intersection) - +# - [&](#method-i-26) (aliased as #intersection): # Returns a new set containing all elements common to +self+ # and a given enumerable. -# - [-](#method-i-2D) (aliased as #difference) - +# - [-](#method-i-2D) (aliased as #difference): # Returns a copy of +self+ with all elements # in a given enumerable removed. -# - [\^](#method-i-5E) - +# - [\^](#method-i-5E): # Returns a new set containing all elements from +self+ # and a given enumerable except those common to both. # # ### Methods for Comparing # -# - [<=>](#method-i-3C-3D-3E) - +# - [<=>](#method-i-3C-3D-3E): # Returns -1, 0, or 1 as +self+ is less than, equal to, # or greater than a given object. -# - [==](#method-i-3D-3D) - +# - [==](#method-i-3D-3D): # Returns whether +self+ and a given enumerable are equal, # as determined by Object#eql?. -# - \#compare_by_identity? - +# - \#compare_by_identity?: # Returns whether the set considers only identity # when comparing elements. # # ### Methods for Querying # -# - \#length (aliased as #size) - +# - \#length (aliased as #size): # Returns the count of elements. -# - \#empty? - +# - \#empty?: # Returns whether the set has no elements. -# - \#include? (aliased as #member? and #===) - +# - \#include? (aliased as #member? and #===): # Returns whether a given object is an element in the set. -# - \#subset? (aliased as [<=](#method-i-3C-3D)) - +# - \#subset? (aliased as [<=](#method-i-3C-3D)): # Returns whether a given object is a subset of the set. -# - \#proper_subset? (aliased as [<](#method-i-3C)) - +# - \#proper_subset? (aliased as [<](#method-i-3C)): # Returns whether a given enumerable is a proper subset of the set. -# - \#superset? (aliased as [<=](#method-i-3E-3D])) - +# - \#superset? (aliased as [<=](#method-i-3E-3D])): # Returns whether a given enumerable is a superset of the set. -# - \#proper_superset? (aliased as [>](#method-i-3E)) - +# - \#proper_superset? (aliased as [>](#method-i-3E)): # Returns whether a given enumerable is a proper superset of the set. -# - \#disjoint? - +# - \#disjoint?: # Returns +true+ if the set and a given enumerable # have no common elements, +false+ otherwise. -# - \#intersect? - -# Returns +true+ if the set and a given enumerable - +# - \#intersect?: +# Returns +true+ if the set and a given enumerable: # have any common elements, +false+ otherwise. -# - \#compare_by_identity? - +# - \#compare_by_identity?: # Returns whether the set considers only identity # when comparing elements. # # ### Methods for Assigning # -# - \#add (aliased as #<<) - +# - \#add (aliased as #<<): # Adds a given object to the set; returns +self+. -# - \#add? - +# - \#add?: # If the given object is not an element in the set, # adds it and returns +self+; otherwise, returns +nil+. -# - \#merge - +# - \#merge: # Adds each given object to the set; returns +self+. -# - \#replace - +# - \#replace: # Replaces the contents of the set with the contents # of a given enumerable. # # ### Methods for Deleting # -# - \#clear - +# - \#clear: # Removes all elements in the set; returns +self+. -# - \#delete - +# - \#delete: # Removes a given object from the set; returns +self+. -# - \#delete? - +# - \#delete?: # If the given object is an element in the set, # removes it and returns +self+; otherwise, returns +nil+. -# - \#subtract - +# - \#subtract: # Removes each given object from the set; returns +self+. # - \#delete_if - Removes elements specified by a given block. -# - \#select! (aliased as #filter!) - +# - \#select! (aliased as #filter!): # Removes elements not specified by a given block. -# - \#keep_if - +# - \#keep_if: # Removes elements not specified by a given block. # - \#reject! # Removes elements specified by a given block. # # ### Methods for Converting # -# - \#classify - +# - \#classify: # Returns a hash that classifies the elements, # as determined by the given block. -# - \#collect! (aliased as #map!) - +# - \#collect! (aliased as #map!): # Replaces each element with a block return-value. -# - \#divide - +# - \#divide: # Returns a hash that classifies the elements, # as determined by the given block; # differs from #classify in that the block may accept # either one or two arguments. -# - \#flatten - +# - \#flatten: # Returns a new set that is a recursive flattening of +self+. -# \#flatten! - +# \#flatten!: # Replaces each nested set in +self+ with the elements from that set. -# - \#inspect (aliased as #to_s) - +# - \#inspect (aliased as #to_s): # Returns a string displaying the elements. -# - \#join - +# - \#join: # Returns a string containing all elements, converted to strings # as needed, and joined by the given record separator. -# - \#to_a - +# - \#to_a: # Returns an array containing all set elements. -# - \#to_set - +# - \#to_set: # Returns +self+ if given no arguments and no block; # with a block given, returns a new set consisting of block # return values. # # ### Methods for Iterating # -# - \#each - +# - \#each: # Calls the block with each successive element; returns +self+. # # ### Other Methods # -# - \#reset - +# - \#reset: # Resets the internal state; useful if an object # has been modified while an element in the set. # -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/