Class: CrawlStation::ParseStruct
- Inherits:
-
Object
- Object
- CrawlStation::ParseStruct
- Extended by:
- Forwardable
- Includes:
- Concerns::ParserClassConcern
- Defined in:
- lib/crawl_station/fundation/parse_struct.rb
Instance Attribute Summary collapse
-
#parse ⇒ Object
Returns the value of attribute parse.
Instance Method Summary collapse
- #[](item) ⇒ Object
- #[]=(item, value) ⇒ Object
-
#initialize(opts = {}) ⇒ ParseStruct
constructor
A new instance of ParseStruct.
Constructor Details
#initialize(opts = {}) ⇒ ParseStruct
Returns a new instance of ParseStruct.
13 14 15 16 |
# File 'lib/crawl_station/fundation/parse_struct.rb', line 13 def initialize(opts = {}) @parse = opts @parse.deep_symbolize_keys! end |
Instance Attribute Details
#parse ⇒ Object
Returns the value of attribute parse.
6 7 8 |
# File 'lib/crawl_station/fundation/parse_struct.rb', line 6 def parse @parse end |
Instance Method Details
#[](item) ⇒ Object
18 19 20 |
# File 'lib/crawl_station/fundation/parse_struct.rb', line 18 def [](item) get_value(item) end |
#[]=(item, value) ⇒ Object
22 23 24 |
# File 'lib/crawl_station/fundation/parse_struct.rb', line 22 def []=(item, value) set_value(item, value) end |