Skip to content

Tag Archives: Ruby Set-class

The divide() is an inbuilt method in Ruby returns a set of sets. It is divided according to the condition that is given by the… Read More
The empty?() is an inbuilt method in Ruby returns true if the set is empty or it returns false. Syntax: s1.empty?() Parameters: The function does… Read More
The >= is an inbuilt method in Ruby that returns true if a set if a superset of another set. If it is not a… Read More
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… Read More
The subtract() is an inbuilt method in Ruby returns the set after deleting all the objects that appear in the enum that is passed. Syntax:… Read More
The <= is an inbuilt method in Ruby returns true if the set is a subset of the given set. Syntax: s1_name <= s2_name Parameters:… Read More
The subset?() is an inbuilt method in Ruby returns true if the set is a subset of the given set. Syntax: s1_name.subset?(s2_name) Parameters: The function… Read More
The proper_superset? is an inbuilt method in Ruby that returns true if a set if a proper superset of another set. If it is not… Read More
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… Read More
The > is an inbuilt method in Ruby that returns true if a set if a proper superset of another set. If it is not… Read More
The reset() is an inbuilt method in Ruby resets the internal state after modification to existing elements and returns self. The elements will be reindexed… Read More
The replace() is an inbuilt method in Ruby which replaces the contents of the set with the contents of the given enumerable object and returns… Read More
The merge() is an inbuilt method in Ruby returns the new set after merging the passed objects into a set. Syntax: s1_name.merge(object) Parameters: The function… Read More
The member?() is an inbuilt method in Ruby returns true if the set contains the given object. It returns false if it does not contains… Read More
The size() is an inbuilt method in Ruby returns the size of the Set. It returns the number of elements in the set. Syntax: s1_name.size()… Read More