Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
self
/
root
/
proc
/
self
/
root
/
opt
/
ruby-2.6
/
usr
/
share
/
ri
/
2.6.0
/
system
/
Symbol
/
//proc/self/root/proc/self/root/opt/ruby-2.6/usr/share/ri/2.6.0/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"B<code>Symbol</code> objects represent names and some strings ;TI"inside the Ruby ;TI"Finterpreter. They are generated using the <code>:name</code> and ;TI"%<code>:"string"</code> literals ;TI"Fsyntax, and by the various <code>to_sym</code> methods. The same ;TI"K<code>Symbol</code> object will be created for a given name or string ;TI"Jfor the duration of a program's execution, regardless of the context ;TI"Ior meaning of that name. Thus if <code>Fred</code> is a constant in ;TI"Cone context, a method in another, and a class in a third, the ;TI"G<code>Symbol</code> <code>:Fred</code> will be the same object in ;TI"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;;[ ; @2; 0I"../string.c;T[[I" class;T[[:public[[I"all_symbols;T@:[I"json_create;TI"'../ext/json/lib/json/add/symbol.rb;T[:protected[ [:private[ [I" instance;T[[;["[I"<=>;T@:[I"==;T@:[I"===;T@:[I"=~;T@:[I"[];T@:[I"as_json;T@E[I"capitalize;T@:[I"casecmp;T@:[I" casecmp?;T@:[I"dclone;TI"!../lib/rexml/xpath_parser.rb;T[I" downcase;T@:[I"empty?;T@:[I" encoding;T@:[I"id2name;T@:[I"inspect;T@:[I"intern;T@:[I"length;T@:[I" match;T@:[I"match?;T@:[I" next;T@:[I" size;T@:[I" slice;T@:[I" succ;T@:[I" swapcase;T@:[I"to_json;T@E[I"to_proc;T@:[I" to_s;T@:[I"to_sym;T@:[I"upcase;T@:[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@ @@2@2cRDoc::TopLevel