In Files

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

Parent

Regexp

Public Class Methods

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

Public Instance Methods

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