123456789_123456789_123456789_123456789_123456789_

Class: RSS::XMLParserListener

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSS::BaseListener
Defined in: lib/rss/xmlparser.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

Instance Method Details

#xmldecl(version, encoding, standalone)

[ GitHub ]

  
# File 'lib/rss/xmlparser.rb', line 87

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