module FaradayJSON::ParseJson::OptionsExtension
DRAGONS
Attributes
preserve_raw[RW]
Public Instance Methods
each() { |:preserve_raw, preserve_raw| ... }
click to toggle source
Calls superclass method
# File lib/faraday_json/parse_json.rb, line 104 def each return to_enum(:each) unless block_given? super yield :preserve_raw, preserve_raw end
fetch(key, *args)
click to toggle source
Calls superclass method
# File lib/faraday_json/parse_json.rb, line 110 def fetch(key, *args) if :preserve_raw == key value = __send__(key) value.nil? ? args.fetch(0) : value else super end end
to_hash()
click to toggle source
Calls superclass method
# File lib/faraday_json/parse_json.rb, line 100 def to_hash super.update(:preserve_raw => preserve_raw) end