Class: Aranha::Parsers::Ofx::BodyParser
- Inherits:
-
Object
- Object
- Aranha::Parsers::Ofx::BodyParser
- Defined in:
- lib/aranha/parsers/ofx/body_parser.rb,
lib/aranha/parsers/ofx/body_parser/node_extension.rb
Defined Under Namespace
Modules: NodeExtension
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.parse(content) ⇒ Nokogiri::XML::Document
12 13 14 |
# File 'lib/aranha/parsers/ofx/body_parser.rb', line 12 def parse(content) new(content).parse end |
Instance Method Details
#parse ⇒ Nokogiri::XML::Document
20 21 22 23 24 25 26 27 |
# File 'lib/aranha/parsers/ofx/body_parser.rb', line 20 def parse r = ::Nokogiri::XML(content) do |config| config.strict config.noblanks end r.singleton_class.prepend(::Aranha::Parsers::Ofx::BodyParser::NodeExtension) r end |