--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Returns true if obj is an element of rng, false otherwise. Conveniently, === is the comparison operator used by case statements.
- !ruby/struct:SM::Flow::VERB
body: " case 79\n when 1..50 then print "low\\n"\n when 51..75 then print "medium\\n"\n when 76..100 then print "high\\n"\n end\n"
- !ruby/struct:SM::Flow::P
body: produces:
- !ruby/struct:SM::Flow::VERB
body: " high\n"
full_name: Range#include?
is_singleton: false
name: include?
params: |
rng === obj => true or false
rng.member?(val) => true or false
rng.include?(val) => true or false
visibility: public