Exception: Exception
- Defined in:
- lib/json/add/core.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.json_create(object) ⇒ Object
120 121 122 123 124 |
# File 'lib/json/add/core.rb', line 120 def self.json_create(object) result = new(object['m']) result.set_backtrace object['b'] result end |
Instance Method Details
#to_json(*args) ⇒ Object
126 127 128 129 130 131 132 |
# File 'lib/json/add/core.rb', line 126 def to_json(*args) { JSON.create_id => self.class.name, 'm' => , 'b' => backtrace, }.to_json(*args) end |