Ruby Symbol Functions
EditRocket provides the following information on Symbol functions in the Ruby source code builder.
all_symbols - Returns an array of all the symbols currently in Ruby's symbol table.
dclone() -
id2name - Returns the name or string corresponding to sym.
inspect - Returns the representation of sym as a symbol literal.
new -
to_i - Returns an integer that is unique for each symbol within a particular execution of a program.
to_int() - ":nodoc:"
to_s - Returns the name or string corresponding to sym.
to_sym - In general, to_sym returns the Symbol corresponding to an object. As sym is already a symbol, self is returned in this case.
to_yaml( opts = {} ) -
yaml_new( klass, tag, val ) -