Exception: Exception
- Defined in:
- lib/gems/json_pure-1.1.3/lib/json/add/core.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.json_create(object) ⇒ Object
108 109 110 111 112 |
# File 'lib/gems/json_pure-1.1.3/lib/json/add/core.rb', line 108 def self.json_create(object) result = new(object['m']) result.set_backtrace object['b'] result end |
Instance Method Details
#to_json(*args) ⇒ Object
114 115 116 117 118 119 120 |
# File 'lib/gems/json_pure-1.1.3/lib/json/add/core.rb', line 114 def to_json(*args) { 'json_class' => self.class.name, 'm' => , 'b' => backtrace, }.to_json(*args) end |