Class: Saxxy::Service
- Inherits:
-
Object
- Object
- Saxxy::Service
- Defined in:
- lib/saxxy/service.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize(parser, options = {}, &block) ⇒ Service
constructor
A new instance of Service.
- #parse_file(*args) ⇒ Object
- #parse_io(*args) ⇒ Object
- #parse_string(*args) ⇒ Object
Constructor Details
#initialize(parser, options = {}, &block) ⇒ Service
Returns a new instance of Service.
15 16 17 |
# File 'lib/saxxy/service.rb', line 15 def initialize(parser, = {}, &block) @parser = build_parser(parser, , &block) end |
Instance Attribute Details
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
13 14 15 |
# File 'lib/saxxy/service.rb', line 13 def parser @parser end |
Instance Method Details
#parse_file(*args) ⇒ Object
19 20 21 |
# File 'lib/saxxy/service.rb', line 19 def parse_file(*args) @parser.parse_file(*args) end |
#parse_io(*args) ⇒ Object
27 28 29 |
# File 'lib/saxxy/service.rb', line 27 def parse_io(*args) @parser.parse_io(*args) end |
#parse_string(*args) ⇒ Object
23 24 25 |
# File 'lib/saxxy/service.rb', line 23 def parse_string(*args) @parser.parse_string(*args) end |