Class: RSS::BaseParser
- Inherits:
-
Object
show all
- Defined in:
- lib/rss/parser.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of BaseParser.
138
139
140
141
|
# File 'lib/rss/parser.rb', line 138
def initialize()
@listener = self.class.listener.new
@rss =
end
|
Class Method Details
.raise_for_undefined_entity? ⇒ Boolean
133
134
135
|
# File 'lib/rss/parser.rb', line 133
def raise_for_undefined_entity?
listener.raise_for_undefined_entity?
end
|
Instance Method Details
#do_validate ⇒ Object
155
156
157
|
# File 'lib/rss/parser.rb', line 155
def do_validate
@listener.do_validate
end
|
#do_validate=(new_value) ⇒ Object
159
160
161
|
# File 'lib/rss/parser.rb', line 159
def do_validate=(new_value)
@listener.do_validate = new_value
end
|
#ignore_unknown_element ⇒ Object
147
148
149
|
# File 'lib/rss/parser.rb', line 147
def ignore_unknown_element
@listener.ignore_unknown_element
end
|
#ignore_unknown_element=(new_value) ⇒ Object
151
152
153
|
# File 'lib/rss/parser.rb', line 151
def ignore_unknown_element=(new_value)
@listener.ignore_unknown_element = new_value
end
|
#parse ⇒ Object
163
164
165
166
167
168
|
# File 'lib/rss/parser.rb', line 163
def parse
if @listener..nil?
_parse
end
@listener.
end
|
143
144
145
|
# File 'lib/rss/parser.rb', line 143
def
@listener.
end
|