Class: ROXML::XML::Parser
- Inherits:
-
Object
- Object
- ROXML::XML::Parser
- Defined in:
- lib/roxml/xml/parsers/libxml.rb,
lib/roxml/xml/parsers/nokogiri.rb
Class Method Summary collapse
- .parse(string) ⇒ Object
-
.parse_file(path) ⇒ Object
:nodoc:.
-
.parse_io(stream) ⇒ Object
:nodoc:.
Class Method Details
.parse(string) ⇒ Object
77 78 79 |
# File 'lib/roxml/xml/parsers/libxml.rb', line 77 def parse(str_data) string(str_data).parse end |
.parse_file(path) ⇒ Object
:nodoc:
17 18 19 |
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 17 def parse_file(path) file(path).parse end |
.parse_io(stream) ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 22 def parse_io(stream) io(stream).parse end |