method

to_sym

Importance_1
v1_8_6_287 - Show latest stable - 0 notes - Class: Fixnum
to_sym() public

Returns the symbol whose integer value is fix. See also Fixnum#id2name.

   fred = :fred.to_i
   fred.id2name   #=> "fred"
   fred.to_sym    #=> :fred
Show source
Register or log in to add new notes.