[DOC] Update Set#subset? documentation

This commit is contained in:
Burdette Lamar authored and GitHub committed 2026-07-01 23:55:14 -07:00
1 parent 426899ea64
commit e4a403ebd7
1 file changed
+10 -2
Notes: git 2026-07-02 06:55:41 +00:00
+10 -2
View File
@@ -1883,9 +1883,17 @@ set_i_proper_subset(VALUE set, VALUE other)
/*
* call-seq:
* subset?(set) -> true or false
* subset?(other_set) -> true or false
*
* Returns true if the set is a subset of the given set.
* Returns whether +self+ is a {subset}[https://en.wikipedia.org/wiki/Subset]
* of the given +other_set+:
*
* set = Set[*'b'..'e']
* set.subset?(set) # => true
* set.subset?(Set[*'a'..'f']) # => true
* set.subset?(Set[*'c'..'e']) # => false
*
* Related: {Methods for Querying}[rdoc-ref:Set@Methods+for+Querying].
*/
static VALUE
set_i_subset(VALUE set, VALUE other)