module Roar::JSON::InstanceMethods
Public Instance Methods
deserialize(*args)
click to toggle source
# File lib/roar/json.rb, line 29 def deserialize(*args) from_json(*args) end
from_json(document, options={})
click to toggle source
Calls superclass method
# File lib/roar/json.rb, line 18 def from_json(document, options={}) document = '{}' if document.nil? or document.empty? super end
serialize(*args)
click to toggle source
Generic entry-point for rendering.
# File lib/roar/json.rb, line 25 def serialize(*args) to_json(*args) end