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
/
212
/
root
/
opt
/
ruby-2.7
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Symbol
/
//proc/self/root/proc/212/root/opt/ruby-2.7/usr/share/ri/2.7.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"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;;[ ; I" string.c;T; 0I"../string.c;T[[I" class;T[[:public[[I"all_symbols;T@9[I"json_create;TI"'../ext/json/lib/json/add/symbol.rb;T[:protected[ [:private[ [I" instance;T[[;[$[I"<=>;T@9[I"==;T@9[I"===;T@9[I"=~;T@9[I"[];T@9[I"as_json;T@D[I"capitalize;T@9[I"casecmp;T@9[I" casecmp?;T@9[I"dclone;TI"!../lib/rexml/xpath_parser.rb;T[I" downcase;T@9[I"empty?;T@9[I" encoding;T@9[I"end_with?;T@9[I"id2name;T@9[I"inspect;T@9[I"intern;T@9[I"length;T@9[I" match;T@9[I"match?;T@9[I" next;T@9[I" size;T@9[I" slice;T@9[I"start_with?;T@9[I" succ;T@9[I" swapcase;T@9[I"to_json;T@D[I"to_proc;T@9[I" to_s;T@9[I"to_sym;T@9[I"upcase;T@9[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[I"$ext/json/lib/json/add/symbol.rb;TI"lib/rexml/xpath_parser.rb;T@8@0cRDoc::TopLevel