123456789_123456789_123456789_123456789_123456789_

Class: RSS::REXMLListener

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, ListenerMixin, REXML::StreamListener, BaseListener
Inherits: RSS::BaseListener
Defined in: lib/rss/rexmlparser.rb

Constant Summary

ListenerMixin - Included

CONTENT_PATTERN, NAMESPLIT

Class Attribute Summary

Class Method Summary

BaseListener - Inherited

.available_tags

return the tag_names for setters associated with uri.

.class_name

retrieve class_name for the supplied uri and tag_name If it doesn't exist, capitalize the tag_name.

.getter,
.install_class_name

record class_name for the supplied uri and tag_name.

.install_get_text_element,
.register_uri

register uri against this name.

.setter

return the setter for the uri, tag_name pair, or nil.

.uri_registered?

test if this uri is registered against this name.

.def_get_text_element,
.install_accessor_base

set the accessor for the uri, tag_name pair.

Utils - Extended

element_initialize_arguments?

This method is used inside of several different objects to determine if special behavior is needed in the constructor.

get_file_and_line_from_caller

Returns an array of two elements: the filename where the calling method is located, and the line number where it is defined.

h,
html_escape

Takes a string s with some HTML in it, and escapes '&', '“', '<' and '>', by replacing them with the appropriate entities.

new_with_value_if_need

If value is an instance of class klass, return it, else create a new instance of klass with value value.

to_class_name

Given a name in a name_with_underscores or a name-with-dashes format, returns the CamelCase version of name.

Instance Attribute Summary

Instance Method Summary

Class Attribute Details

.raise_for_undefined_entity?Boolean (readonly)

[ GitHub ]

  
# File 'lib/rss/rexmlparser.rb', line 35

def raise_for_undefined_entity?
  false
end

Instance Method Details

#cdata(data)

Alias for ListenerMixin#text.

[ GitHub ]

  
# File 'lib/rss/rexmlparser.rb', line 46

alias_method(:cdata, :text)

#xmldecl(version, encoding, standalone)

[ GitHub ]

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

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