Class: Saxxy::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/saxxy/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parser, options = {}, &block) ⇒ Service


15
16
17
# File 'lib/saxxy/service.rb', line 15

def initialize(parser, options = {}, &block)
  @parser = build_parser(parser, options, &block)
end

Instance Attribute Details

#parserObject (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