JezK
Edit File: include%3f-i.ri
U:RDoc::AnyMethod[iI" include?:ETI"Set#include?;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"7Returns true if the set contains the given object.;To:RDoc::Markup::BlankLine o; ; [I"QNote that <code>include?</code> and <code>member?</code> do not test member ;TI"<equality using <code>==</code> as do other Enumerables.;T@o; ; [I"!See also Enumerable#include?;T: @fileI"lib/set.rb;T:0@omit_headings_from_table_of_contents_below000[[I"member?;To;; [ ;@; 0[I"===;To;; [ o; ; [I">Returns true if the given object is a member of the set, ;TI"and false otherwise.;T@o; ; [I"Used in case statements:;T@o:RDoc::Markup::Verbatim; [I"require 'set' ;TI" ;TI"case :apple ;TI" when Set[:potato, :carrot] ;TI" "vegetable" ;TI"when Set[:apple, :banana] ;TI" "fruit" ;TI" end ;TI"# => "fruit" ;T:@format0o; ; [I"Or by itself:;T@o;; [I"#Set[1, 2, 3] === 2 #=> true ;TI"#Set[1, 2, 3] === 4 #=> false;T;0;@; 0I"(o);T@FI"Set;TcRDoc::NormalClass00