PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Range
U:RDoc::AnyMethod[iI" include?:ETI"Range#include?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KReturns +true+ if +object+ is an element of +self+, +false+ otherwise:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I")(1..4).include?(2) # => true ;TI"*(1..4).include?(5) # => false ;TI")(1..4).include?(4) # => true ;TI"*(1...4).include?(4) # => false ;TI")('a'..'d').include?('b') # => true ;TI"*('a'..'d').include?('e') # => false ;TI"*('a'..'d').include?('B') # => false ;TI")('a'..'d').include?('d') # => true ;TI"*('a'...'d').include?('d') # => false ;T:@format0o; ; [I"AIf begin and end are numeric, #include? behaves like #cover?;T@o;; [I"$(1..3).include?(1.5) # => true ;TI""(1..3).cover?(1.5) # => true ;T; 0o; ; [I"6But when not numeric, the two methods may differ:;T@o;; [I"*('a'..'d').include?('cc') # => false ;TI")('a'..'d').cover?('cc') # => true ;T; 0o; ; [I"Related: Range#cover?.;T: @fileI"range.c;T:0@omit_headings_from_table_of_contents_below000[ I" (p1);T@+FI" Range;TcRDoc::NormalClass0[@.FI"member?;T
[-] last-i.ri
[edit]
[-] include%3f-i.ri
[edit]
[-] count-i.ri
[edit]
[-] size-i.ri
[edit]
[-] bsearch-i.ri
[edit]
[-] end-i.ri
[edit]
[-] to_s-i.ri
[edit]
[-] max-i.ri
[edit]
[-] to_json-i.ri
[edit]
[-] first-i.ri
[edit]
[-] as_json-i.ri
[edit]
[-] reverse_each-i.ri
[edit]
[-] cover%3f-i.ri
[edit]
[-] to_a-i.ri
[edit]
[-] new-c.ri
[edit]
[-] minmax-i.ri
[edit]
[-] json_create-c.ri
[edit]
[-] min-i.ri
[edit]
[-] hash-i.ri
[edit]
[-] each-i.ri
[edit]
[-] step-i.ri
[edit]
[-] %3d%3d%3d-i.ri
[edit]
[-] eql%3f-i.ri
[edit]
[-] cdesc-Range.ri
[edit]
[-] member%3f-i.ri
[edit]
[-] %25-i.ri
[edit]
[-] exclude_end%3f-i.ri
[edit]
[-] begin-i.ri
[edit]
[-] overlap%3f-i.ri
[edit]
[+]
..
[-] entries-i.ri
[edit]
[-] %3d%3d-i.ri
[edit]
[-] inspect-i.ri
[edit]