Object
retrieve class_name
for the supplied uri and tag_name If it doesn't exist, capitalize the tag_name
# File rss-0.2.9/lib/rss/parser.rb, line 238 def class_name(uri, tag_name) name = (@@class_names[uri] || {})[tag_name] return name if name tag_name = tag_name.gsub(/[_\-]([a-z]?)/) {$1.upcase} tag_name[0, 1].upcase + tag_name[1..-1] end
# File rss-0.2.9/lib/rss/parser.rb, line 210 def getter(uri, tag_name) (@@accessor_bases[uri] || {})[tag_name] end
record class_name
for the supplied uri and tag_name
# File rss-0.2.9/lib/rss/parser.rb, line 231 def install_class_name(uri, tag_name, class_name) @@class_names[uri] ||= {} @@class_names[uri][tag_name] = class_name end
# File rss-0.2.9/lib/rss/parser.rb, line 246 def install_get_text_element(uri, name, accessor_base) install_accessor_base(uri, name, accessor_base) def_get_text_element(uri, name, *get_file_and_line_from_caller(1)) end
# File rss-0.2.9/lib/rss/parser.rb, line 251 def raise_for_undefined_entity? true end
register uri against this name.
# File rss-0.2.9/lib/rss/parser.rb, line 220 def register_uri(uri, name) @@registered_uris[name] ||= {} @@registered_uris[name][uri] = nil end