Class: Aranha::Parsers::Json::Base
- Defined in:
- lib/aranha/parsers/json/base.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#content, #content_encoding, from_content, from_string, #initialize, #source_address_content
Constructor Details
This class inherits a constructor from Aranha::Parsers::Base
Instance Method Details
#data ⇒ Object
10 11 12 |
# File 'lib/aranha/parsers/json/base.rb', line 10 def data default_data end |
#default_data ⇒ Object
14 15 16 |
# File 'lib/aranha/parsers/json/base.rb', line 14 def default_data ::JSON.parse(content) end |