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