module OEmbed::Formatter::JSON::Backends::ActiveSupportJSON
Public Instance Methods
decode(json)
click to toggle source
Parses a JSON
string or IO and convert it into an object.
# File lib/oembed/formatter/json/backends/activesupportjson.rb, line 12 def decode(json) ::ActiveSupport::JSON.decode(json) end
decode_fail_msg()
click to toggle source
# File lib/oembed/formatter/json/backends/activesupportjson.rb, line 16 def decode_fail_msg "The version of ActiveSupport::JSON you have installed isn't parsing JSON like ruby-oembed expected." end
parse_error()
click to toggle source
# File lib/oembed/formatter/json/backends/activesupportjson.rb, line 20 def parse_error ::ActiveSupport::JSON.parse_error end