Parent

Class Index [+]

Quicksearch

Struct

Public Class Methods

json_create(object) click to toggle source
     # File lib/json/add/core.rb, line 106
106:   def self.json_create(object)
107:     new(*object['v'])
108:   end

Public Instance Methods

to_json(*args) click to toggle source
     # File lib/json/add/core.rb, line 110
110:   def to_json(*args)
111:     klass = self.class.name
112:     klass.to_s.empty? and raise JSON::JSONError, "Only named structs are supported!"
113:     {
114:       JSON.create_id => klass,
115:       'v'     => values,
116:     }.to_json(*args)
117:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.