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.
137
138
139
140
|
# File 'lib/rss/parser.rb', line 137
def initialize()
@listener = self.class.listener.new
@rss =
end
|
Class Method Details
.raise_for_undefined_entity? ⇒ Boolean
132
133
134
|
# File 'lib/rss/parser.rb', line 132
def raise_for_undefined_entity?
listener.raise_for_undefined_entity?
end
|
Instance Method Details
#do_validate ⇒ Object
154
155
156
|
# File 'lib/rss/parser.rb', line 154
def do_validate
@listener.do_validate
end
|
#do_validate=(new_value) ⇒ Object
158
159
160
|
# File 'lib/rss/parser.rb', line 158
def do_validate=(new_value)
@listener.do_validate = new_value
end
|
#ignore_unknown_element ⇒ Object
146
147
148
|
# File 'lib/rss/parser.rb', line 146
def ignore_unknown_element
@listener.ignore_unknown_element
end
|
#ignore_unknown_element=(new_value) ⇒ Object
150
151
152
|
# File 'lib/rss/parser.rb', line 150
def ignore_unknown_element=(new_value)
@listener.ignore_unknown_element = new_value
end
|
#parse ⇒ Object
162
163
164
165
166
167
|
# File 'lib/rss/parser.rb', line 162
def parse
if @listener..nil?
_parse
end
@listener.
end
|
142
143
144
|
# File 'lib/rss/parser.rb', line 142
def
@listener.
end
|