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

Class Method Details

.raise_for_undefined_entity?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/rss/rexmlparser.rb', line 36

def raise_for_undefined_entity?
  false
end

Instance Method Details

#xmldecl(version, encoding, standalone) ⇒ Object



41
42
43
44
45
# File 'lib/rss/rexmlparser.rb', line 41

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