PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Symbol
U:RDoc::AnyMethod[iI" casecmp?:ETI"Symbol#casecmp?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QReturns +true+ if +self+ and +object+ are equal after Unicode case folding, ;TI"otherwise +false+:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"lower = :abc ;TI"upper = :ABC ;TI"%upper.casecmp?(lower) # => true ;TI"%lower.casecmp?(lower) # => true ;TI"%lower.casecmp?(upper) # => true ;T:@format0o; ; [I"EReturns nil if +self+ and +object+ have incompatible encodings, ;TI"$or if +object+ is not a symbol:;T@o;; [ I"0sym = 'äöü'.encode("ISO-8859-1").to_sym ;TI"other_sym = 'ÄÖÜ' ;TI"&sym.casecmp?(other_sym) # => nil ;TI"&:foo.casecmp?(2) # => nil ;T; 0o; ; [I"RUnlike Symbol#casecmp, works for characters outside of 'A'..'Z' and 'a'..'z':;T@o;; [ I"lower = :äöü ;TI"upper = :ÄÖÜ ;TI"%upper.casecmp?(lower) # => true ;TI"%lower.casecmp?(lower) # => true ;TI"%lower.casecmp?(upper) # => true ;T; 0o; ; [I".Related: Symbol#casecmp, String#casecmp?.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"-casecmp?(object) -> true, false, or nil ;T0[ I" (p1);T@.FI"Symbol;TcRDoc::NormalClass00
[-] start_with%3f-i.ri
[edit]
[-] size-i.ri
[edit]
[-] %3d%7e-i.ri
[edit]
[-] id2name-i.ri
[edit]
[-] all_symbols-c.ri
[edit]
[-] to_s-i.ri
[edit]
[-] to_json-i.ri
[edit]
[-] swapcase-i.ri
[edit]
[-] %3c%3d%3e-i.ri
[edit]
[-] as_json-i.ri
[edit]
[-] encoding-i.ri
[edit]
[-] match-i.ri
[edit]
[-] upcase-i.ri
[edit]
[-] casecmp-i.ri
[edit]
[-] casecmp%3f-i.ri
[edit]
[-] json_create-c.ri
[edit]
[-] to_proc-i.ri
[edit]
[-] match%3f-i.ri
[edit]
[-] name-i.ri
[edit]
[-] %3d%3d%3d-i.ri
[edit]
[-] slice-i.ri
[edit]
[-] empty%3f-i.ri
[edit]
[-] to_sym-i.ri
[edit]
[-] cdesc-Symbol.ri
[edit]
[-] %5b%5d-i.ri
[edit]
[+]
..
[-] end_with%3f-i.ri
[edit]
[-] downcase-i.ri
[edit]
[-] succ-i.ri
[edit]
[-] %3d%3d-i.ri
[edit]
[-] intern-i.ri
[edit]
[-] inspect-i.ri
[edit]
[-] next-i.ri
[edit]
[-] length-i.ri
[edit]
[-] capitalize-i.ri
[edit]