Module: RDF::TriX::Reader::Nokogiri
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trix-4b113f65db0e/lib/rdf/trix/reader/nokogiri.rb
Overview
Nokogiri implementation of the TriX reader.
Constant Summary collapse
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 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trix-4b113f65db0e/lib/rdf/trix/reader/nokogiri.rb', line 14 def self.library :nokogiri end |
Instance Method Details
#initialize_xml(input, **options)
This method returns an undefined value.
Initializes the underlying XML library.
23 24 25 26 27 28 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-trix-4b113f65db0e/lib/rdf/trix/reader/nokogiri.rb', line 23 def initialize_xml(input, **) require 'nokogiri' unless defined?(::Nokogiri) @xml = ::Nokogiri::XML(input) log_error("Errors: #{@xml.errors.join('\n')}") unless @xml.errors.empty? @xml end |