The proper_subset? is an inbuilt method in Ruby that returns true if a set if a proper subset of another set. If it is not a proper subset, then it returns false.
Parameters: The function does not takes any parameter.
Return Value: It returns true if set s1 is a proper subset of s2, 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.