Class: RSS::REXMLListener

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

Constant Summary

Constant Summary

Constants included from ListenerMixin

ListenerMixin::CONTENT_PATTERN, ListenerMixin::NAMESPLIT

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, #known_class?, #tag_end, #tag_start, #text

Methods included from REXML::StreamListener

#attlistdecl, #comment, #doctype, #doctype_end, #elementdecl, #entity, #entitydecl, #instruction, #notationdecl, #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

+ (Boolean) raise_for_undefined_entity?

Returns:

  • (Boolean)


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

def raise_for_undefined_entity?
  false
end

Instance Method Details

- (Object) xmldecl(version, encoding, standalone)



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