Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
Symbol
/
//opt/alt/ruby27/share/ri/system/Symbol/cdesc-Symbol.ri
U:RDoc::NormalClass[iI"Symbol:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[ : @fileI"$ext/json/lib/json/add/symbol.rb;T:0@omit_headings_from_table_of_contents_below0o;;[ ; I"lib/rexml/xpath_parser.rb;T; 0o;;[o:RDoc::Markup::Paragraph;[I"FSymbol objects represent names inside the Ruby interpreter. They ;TI"4are generated using the <code>:name</code> and ;TI"@<code>:"string"</code> literals syntax, and by the various ;TI"A<code>to_sym</code> methods. The same Symbol object will be ;TI"Hcreated for a given name or string for the duration of a program's ;TI"Hexecution, regardless of the context or meaning of that name. Thus ;TI"Dif <code>Fred</code> is a constant in one context, a method in ;TI"Danother, and a class in a third, the Symbol <code>:Fred</code> ;TI"3will be the same object in all three contexts.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[I"module One ;TI" class Fred ;TI" end ;TI" $f1 = :Fred ;TI" end ;TI"module Two ;TI" Fred = 1 ;TI" $f2 = :Fred ;TI" end ;TI"def Fred() ;TI" end ;TI"$f3 = :Fred ;TI"!$f1.object_id #=> 2514190 ;TI"!$f2.object_id #=> 2514190 ;TI" $f3.object_id #=> 2514190;T:@format0; I" string.c;T; 0; 0; 0[ [ [[I"Comparable;To;;[ ; @0; 0I" string.c;T[[I" class;T[[:public[ [:protected[ [:private[[I"all_symbols;T@8[I"json_create;TI"$ext/json/lib/json/add/symbol.rb;T[I" instance;T[[;[ [;[ [;[$[I"<=>;T@8[I"==;T@8[I"===;T@8[I"=~;T@8[I"[];T@8[I"as_json;T@G[I"capitalize;T@8[I"casecmp;T@8[I" casecmp?;T@8[I"dclone;TI"lib/rexml/xpath_parser.rb;T[I" downcase;T@8[I"empty?;T@8[I" encoding;T@8[I"end_with?;T@8[I"id2name;T@8[I"inspect;T@8[I"intern;T@8[I"length;T@8[I" match;T@8[I"match?;T@8[I" next;T@8[I" size;T@8[I" slice;T@8[I"start_with?;T@8[I" succ;T@8[I" swapcase;T@8[I"to_json;T@G[I"to_proc;T@8[I" to_s;T@8[I"to_sym;T@8[I"upcase;T@8[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[I"$ext/json/lib/json/add/symbol.rb;TI"lib/rexml/xpath_parser.rb;TI" string.c;T@0cRDoc::TopLevel