I don't know if I'm just searching for the wrong things or what, but is there a simple way to evaluate a range and check if an integer is within that range using the (2..100)
syntax.
Like just say I wanted to evaluate as true if my integer x = 100
, and my range is (2..0)
, I'm just looking for the simple, concise ruby-way of doing this.