Class: Saxxy::Parsers::Base
- Inherits:
-
Object
- Object
- Saxxy::Parsers::Base
- Defined in:
- lib/saxxy/parsers/base.rb
Instance Attribute Summary collapse
-
#context_tree ⇒ Object
readonly
Returns the value of attribute context_tree.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(context_tree, options = {}) ⇒ Base
constructor
A new instance of Base.
- #parse_file(path_to_file) ⇒ Object
- #parse_io(io) ⇒ Object
- #parse_string(string) ⇒ Object
Constructor Details
#initialize(context_tree, options = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/saxxy/parsers/base.rb', line 9 def initialize(context_tree, = {}) @context_tree = context_tree @options = end |
Instance Attribute Details
#context_tree ⇒ Object (readonly)
Returns the value of attribute context_tree.
7 8 9 |
# File 'lib/saxxy/parsers/base.rb', line 7 def context_tree @context_tree end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/saxxy/parsers/base.rb', line 7 def @options end |
Instance Method Details
#parse_file(path_to_file) ⇒ Object
14 15 16 |
# File 'lib/saxxy/parsers/base.rb', line 14 def parse_file(path_to_file) raise NotImplemented end |
#parse_io(io) ⇒ Object
22 23 24 |
# File 'lib/saxxy/parsers/base.rb', line 22 def parse_io(io) raise NotImplemented end |
#parse_string(string) ⇒ Object
18 19 20 |
# File 'lib/saxxy/parsers/base.rb', line 18 def parse_string(string) raise NotImplemented end |