[DOC] Update Set assign methods documentation

Co-authored-by: Jeremy Evans <code@jeremyevans.net>
This commit is contained in:
Burdette LamarandJeremy Evans authored and GitHub committed 2026-07-02 17:16:58 -07:00
1 parent b5dc95c649
commit 82979eed5a
1 file changed
+5 -6
Notes: git 2026-07-03 00:17:26 +00:00
+5 -6
View File
@@ -2463,15 +2463,14 @@ rb_set_size(VALUE set)
* === Methods for Assigning
*
* - #add (aliased as #<<):
* Adds a given object to the set; returns +self+.
* Adds the given object to +self+, returns +self+.
* - #add?:
* If the given object is not an element in the set,
* adds it and returns +self+; otherwise, returns +nil+.
* Like #add, but returns +nil+ if the given object is already in +self+.
* - #merge:
* Merges the elements of each given enumerable object to the set; returns +self+.
* Adds the elements of the given enumerables to +self+; returns +self+.
* - #replace:
* Replaces the contents of the set with the contents
* of a given enumerable.
* Replaces the contents of +self+ with the contents of the given enumerable;
* returns +self+.
*
* === Methods for Deleting
*