Flowdock
method

cover?

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Range
cover?(p1) public

Returns true if obj is between beg and end, i.e beg <= obj <= end (or end exclusive when exclude_end? is true).

("a".."z").cover?("c")    #=> true
("a".."z").cover?("5")    #=> false
Show source
Register or log in to add new notes.