I have a exercise of the school and i can't resolve it. Can you help me? The problem is this:
Try using a method that takes two arguments - use the between? method to determine if the number 2 lies between the numbers 1 and 3.
I tried to find what is the .between? method but í couldn't find it. I just know that is a method
The method is Comparable#between?, and you can use it like this:
2.between?(1, 3)
# => true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With