Class: Awsum::Parser

Inherits:
Object show all
Defined in:
lib/awsum/parser.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#parse(xml_text) ⇒ Object



5
6
7
8
# File 'lib/awsum/parser.rb', line 5

def parse(xml_text)
  REXML::Document.parse_stream(xml_text, self)
  result
end

#resultObject

– Methods to be overridden by each Parser implementation



12
# File 'lib/awsum/parser.rb', line 12

def result                      ; end

#tag_end(tag) ⇒ Object



15
# File 'lib/awsum/parser.rb', line 15

def tag_end(tag)                ; end

#tag_start(tag, attributes) ⇒ Object



13
# File 'lib/awsum/parser.rb', line 13

def tag_start(tag, attributes)  ; end

#text(text) ⇒ Object



14
# File 'lib/awsum/parser.rb', line 14

def text(text)                  ; end

#xmldecl(*args) ⇒ Object



16
# File 'lib/awsum/parser.rb', line 16

def xmldecl(*args)              ; end