Module: RDF::TriX::Reader::REXML
- Defined in:
- lib/rdf/trix/reader/rexml.rb
Overview
REXML implementation of the TriX reader.
Constant Summary collapse
- OPTIONS =
{}.freeze
Class Method Summary collapse
-
.library ⇒ Symbol
Returns the name of the underlying XML library.
Instance Method Summary collapse
-
#initialize_xml(input, **options)
Initializes the underlying XML library.
Class Method Details
.library ⇒ Symbol
Returns the name of the underlying XML library.
14 15 16 |
# File 'lib/rdf/trix/reader/rexml.rb', line 14 def self.library :rexml end |
Instance Method Details
#initialize_xml(input, **options)
This method returns an undefined value.
Initializes the underlying XML library.
23 24 25 26 |
# File 'lib/rdf/trix/reader/rexml.rb', line 23 def initialize_xml(input, **) require 'rexml/document' unless defined?(::REXML) @xml = ::REXML::Document.new(input, :compress_whitespace => %w{uri}) end |