Class: RSS::REXMLListener

Inherits:
BaseListener show all
Includes:
REXML::StreamListener, ListenerMixin
Defined in:
lib/rss/rexmlparser.rb

Instance Attribute Summary

Attributes included from ListenerMixin

#do_validate, #ignore_unknown_element, #rss

Class Method Summary collapse

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, 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

Class Method Details

.raise_for_undefined_entity?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/rss/rexmlparser.rb', line 40

def raise_for_undefined_entity?
  false
end

Instance Method Details

#xmldecl(version, encoding, standalone) ⇒ Object



45
46
47
48
49
# File 'lib/rss/rexmlparser.rb', line 45

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