Class: Saxxy::Callbacks::Nokogiri

Inherits:
Nokogiri::XML::SAX::Document
  • Object
show all
Includes:
SAX
Defined in:
lib/saxxy/callbacks/nokogiri.rb

Instance Method Summary collapse

Methods included from SAX

included, #initialize, #on_characters, #on_end_document, #on_end_element, #on_start_element

Instance Method Details

#characters(string) ⇒ Object


15
16
17
# File 'lib/saxxy/callbacks/nokogiri.rb', line 15

def characters(string)
  on_characters(string)
end

#end_documentObject


23
24
25
# File 'lib/saxxy/callbacks/nokogiri.rb', line 23

def end_document
  on_end_document
end

#end_element(name) ⇒ Object


19
20
21
# File 'lib/saxxy/callbacks/nokogiri.rb', line 19

def end_element(name)
  on_end_element(name)
end

#start_element(name, attrs) ⇒ Object


11
12
13
# File 'lib/saxxy/callbacks/nokogiri.rb', line 11

def start_element(name, attrs)
  on_start_element(name, Hash[attrs])
end