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

### Methods

available_tags class_name install_class_name install_get_text_element install_setter register_uri setter uri_registered?

### Public Class methods

available_tags(uri)

[Source]

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

class_name(uri, tag_name)

[Source]

    # File rss/parser.rb, line 195
          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

install_class_name(uri, tag_name, class_name)

[Source]

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

install_get_text_element(uri, name, setter)

[Source]

    # File rss/parser.rb, line 203
          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

install_setter(uri, tag_name, setter)

[Source]

    # File rss/parser.rb, line 160
          def install_setter(uri, tag_name, setter)
            @@setters[uri] ||= {}
            @@setters[uri][tag_name] = setter
          end

register_uri(uri, name)

[Source]

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

setter(uri, tag_name)

[Source]

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

uri_registered?(uri, name)

[Source]

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

[Validate]