module EPUB::Parser::XMLDocument::Refinements::Nokogiri

Public Instance Methods

attribute_with_prefix(name, prefix = nil) click to toggle source
# File lib/epub/parser/xml_document/refinements/nokogiri.rb, line 13
def attribute_with_prefix(name, prefix = nil)
  attribute_with_ns(name, EPUB::NAMESPACES[prefix])&.value
end
each_element(xpath = nil, &block) click to toggle source
# File lib/epub/parser/xml_document/refinements/nokogiri.rb, line 17
def each_element(xpath = nil, &block)
  element_children.each(&block)
end
each_element_by_xpath(xpath, namespaces = nil, &block) click to toggle source
# File lib/epub/parser/xml_document/refinements/nokogiri.rb, line 9
def each_element_by_xpath(xpath, namespaces = nil, &block)
  xpath(xpath, namespaces).each &block
end
namespace_uri() click to toggle source
# File lib/epub/parser/xml_document/refinements/nokogiri.rb, line 23
def namespace_uri
  namespace.href
end