Ruby | RangesPrerequisite: Ruby Range Operator Ruby ranges depict a set of values with a beginning and an end. Values of a range can be numbers, characters, strings or objects. It is constructed using start_point..end_point, start_point...endpoint literals, or with ::new. It provides the flexibility to the code
4 min read
Operator Overloading in RubyRuby permits operator overloading, allowing one to define how an operator shall be used in a particular program. For example a '+' operator can be define in such a way to perform subtraction instead addition and vice versa. The operators that can be overloaded are +, -, /, *, **, %, etc and some ope
5 min read