Repository URL to install this package:
|
Version:
2.2.2-1 ▾
|
U:RDoc::NormalClass[iI"Symbol:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I")Symbol serialization/deserialization;T: @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; ;[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;0o;;[o; ;[I"MBigDecimal extends the native Integer class to provide the #to_d method.;To; o; ;[I"RWhen you require the BigDecimal library in your application, this methodwill ;TI"%be available on Integer objects.;T; I"*ext/bigdecimal/lib/bigdecimal/util.rb;T;0o;;[o; ;[I"#Add double dispatch to Integer;T; I""ext/openssl/lib/openssl/bn.rb;T;0o;;[ ; I"lib/prime.rb;T;0o;;[o; ;[I"JThis class is the basis for the two concrete classes that hold whole ;TI" numbers, Bignum and Fixnum.;T; I"numeric.c;T;0; 0;0[ [ [[I"Comparable;To;;[ ; @5;0I" string.c;T[[I" class;T[[:public[[I"all_symbols;T@X[I"json_create;FI"$ext/json/lib/json/add/symbol.rb;T[:protected[ [:private[[I"each_prime;FI"lib/prime.rb;T[I"from_prime_division;F@j[I" instance;T[[;[ [I"<=>;T@X[I"==;T@X[I"===;T@X[I"=~;T@X[I"[];T@X[I"as_json;F@c[I"capitalize;T@X[I"casecmp;T@X[I"dclone;FI"lib/rexml/xpath_parser.rb;T[I" downcase;T@X[I"empty?;T@X[I" encoding;T@X[I"id2name;T@X[I"inspect;T@X[I"intern;T@X[I"length;T@X[I" match;T@X[I" next;T@X[I" size;T@X[I" slice;T@X[I" succ;T@X[I" swapcase;T@X[I"to_json;F@c[I"to_proc;T@X[I" to_s;T@X[I"to_sym;T@X[I"upcase;T@X[;[ [;[[I" ceil;TI"numeric.c;T[I"chr;T@ª[I"denominator;TI"rational.c;T[I"downto;T@ª[I" even?;T@ª[I" floor;T@ª[I"gcd;T@¯[I"gcdlcm;T@¯[I" integer?;T@ª[I"lcm;T@¯[I"numerator;T@¯[I" odd?;T@ª[I"ord;T@ª[I" pred;T@ª[I"prime?;F@j[I"prime_division;F@j[I"rationalize;T@¯[I" round;T@ª[I" times;T@ª[I" to_bn;FI""ext/openssl/lib/openssl/bn.rb;T[I" to_d;FI"*ext/bigdecimal/lib/bigdecimal/util.rb;T[I" to_i;T@ª[I"to_int;T@ª[I" to_r;T@¯[I" truncate;T@ª[I" upto;T@ª[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@@@5@IcRDoc::TopLevel