The superset? is an inbuilt method in Ruby that returns true if a set if a superset of another set. If it is not a superset, then it returns false.
Parameters: The function takes a mandatory parameter s2 which is checked for superset of s1.
Return Value: It returns true if set s2 is a superset of s1, else it returns false.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.