Class: Saxxy::Parsers::Ox
- Inherits:
-
Base
- Object
- Base
- Saxxy::Parsers::Ox
show all
- Defined in:
- lib/saxxy/parsers/ox.rb
Instance Attribute Summary
Attributes inherited from Base
#context_tree, #options
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#parse_file(path_to_file, encoding = nil) ⇒ Object
13
14
15
|
# File 'lib/saxxy/parsers/ox.rb', line 13
def parse_file(path_to_file, encoding = nil)
parse(File.new(path_to_file), encoding)
end
|
#parse_io(io, encoding = nil) ⇒ Object
17
18
19
|
# File 'lib/saxxy/parsers/ox.rb', line 17
def parse_io(io, encoding = nil)
parse(io, encoding)
end
|
#parse_string(string, encoding = nil) ⇒ Object
9
10
11
|
# File 'lib/saxxy/parsers/ox.rb', line 9
def parse_string(string, encoding = nil)
parse(StringIO.new(string), encoding)
end
|