instance method
Set#subset?
(self) -> bool
subset?(set) → true or false
set.c
View on GitHub ↗
static VALUE
set_i_subset(VALUE set, VALUE other)
{
check_set(other);
if (RSET_SIZE(set) > RSET_SIZE(other)) return Qfalse;
return set_le(set, other);
}
Returns true if the set is a subset of the given set.