In Files

  • json/lib/json/add/core.rb
  • json/lib/json/add/rails.rb

Parent

Symbol

Public Class Methods

json_create(o) click to toggle source
 
               # File json/lib/json/add/core.rb, line 18
def self.json_create(o)
  o['s'].to_sym
end
            

Public Instance Methods

to_json(*a) click to toggle source
 
               # File json/lib/json/add/core.rb, line 11
def to_json(*a)
  {
    JSON.create_id => self.class.name,
    's' => to_s,
  }.to_json(*a)
end