Parent

Nori::Parser::Nokogiri::Document

Public Instance Methods

cdata_block(string) click to toggle source
Alias for: characters
characters(string) click to toggle source
# File lib/nori/parser/nokogiri.rb, line 28
def characters(string)
  stack.last.add_node(string) unless string.strip.length == 0 || stack.empty?
end
Also aliased as: cdata_block
end_element(name) click to toggle source
# File lib/nori/parser/nokogiri.rb, line 21
def end_element(name)
  if stack.size > 1
    last = stack.pop
    stack.last.add_node last
  end
end
stack() click to toggle source
# File lib/nori/parser/nokogiri.rb, line 13
def stack
  @stack ||= []
end
start_element(name, attrs = []) click to toggle source
# File lib/nori/parser/nokogiri.rb, line 17
def start_element(name, attrs = [])
  stack.push Nori::XMLUtilityNode.new(name, Hash[*attrs.flatten])
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.