Class: Awsum::Parser
Overview
Instance Method Summary
collapse
Instance Method Details
#parse(xml_text) ⇒ Object
5
6
7
8
|
# File 'lib/parser.rb', line 5
def parse(xml_text)
REXML::Document.parse_stream(xml_text, self)
result
end
|
– Methods to be overridden by each Parser implementation
12
|
# File 'lib/parser.rb', line 12
def result ; end
|
#tag_end(tag) ⇒ Object
15
|
# File 'lib/parser.rb', line 15
def tag_end(tag) ; end
|
#tag_start(tag, attributes) ⇒ Object
13
|
# File 'lib/parser.rb', line 13
def tag_start(tag, attributes) ; end
|
#text(text) ⇒ Object
14
|
# File 'lib/parser.rb', line 14
def text(text) ; end
|
#xmldecl(*args) ⇒ Object
16
|
# File 'lib/parser.rb', line 16
def xmldecl(*args) ; end
|