Class: RSS::XMLParserListener

Inherits:
BaseListener show all
Includes:
ListenerMixin
Defined in:
lib/rss/xmlparser.rb

Instance Attribute Summary

Attributes included from ListenerMixin

#do_validate, #ignore_unknown_element, #rss

Instance Method Summary collapse

Methods included from ListenerMixin

#initialize, #instruction, #tag_end, #tag_start, #text

Methods inherited from BaseListener

available_tags, class_name, getter, install_class_name, install_get_text_element, raise_for_undefined_entity?, register_uri, setter, uri_registered?

Methods included from Utils

element_initialize_arguments?, get_file_and_line_from_caller, html_escape, new_with_value_if_need, to_class_name

Instance Method Details

#xmldecl(version, encoding, standalone) ⇒ Object



85
86
87
88
89
# File 'lib/rss/xmlparser.rb', line 85

def xmldecl(version, encoding, standalone)
  super
  # Encoding is converted to UTF-8 when XMLParser parses XML.
  @encoding = 'UTF-8'
end