The denominator() is an inbuilt function in Ruby returns the denominator which is always positive.
Parameters: The function accepts no parameter
Return Value: It returns the denominator which is always positive.
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.