Class RSS::BaseListener
In: rss/parser.rb
Parent: Object

Methods

Public Class methods

return the tag_names for setters associated with uri

[Source]

# File rss/parser.rb, line 191
      def available_tags(uri)
        begin
          @@setters[uri].keys
        rescue NameError
          []
        end
      end

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

[Source]

# File rss/parser.rb, line 218
      def class_name(uri, tag_name)
        begin
          @@class_names[uri][tag_name]
        rescue NameError
          tag_name[0,1].upcase + tag_name[1..-1]
        end
      end

record class_name for the supplied uri and tag_name

[Source]

# File rss/parser.rb, line 211
      def install_class_name(uri, tag_name, class_name)
        @@class_names[uri] ||= {}
        @@class_names[uri][tag_name] = class_name
      end

[Source]

# File rss/parser.rb, line 226
      def install_get_text_element(uri, name, setter)
        install_setter(uri, name, setter)
        def_get_text_element(uri, name, *get_file_and_line_from_caller(1))
      end

[Source]

# File rss/parser.rb, line 231
      def raise_for_undefined_entity?
        true
      end

register uri against this name.

[Source]

# File rss/parser.rb, line 200
      def register_uri(uri, name)
        @@registered_uris[name] ||= {}
        @@registered_uris[name][uri] = nil
      end

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

[Source]

# File rss/parser.rb, line 181
      def setter(uri, tag_name)
        begin
          @@setters[uri][tag_name]
        rescue NameError
          nil
        end
      end

test if this uri is registered against this name

[Source]

# File rss/parser.rb, line 206
      def uri_registered?(uri, name)
        @@registered_uris[name].has_key?(uri)
      end

[Validate]

ruby-doc.org is a community service provided by Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.