Ruby "between" method
Just discovered this today, does it even need an explanation for why it's cool?
4.between?(1,5) => true 4.between?(5,10) => falseNo more code that looks like:
if value > 1 and value < 5 yadda yadda endIt'll simply be written like so:
if value.between?(1,5) yadda yadda end