1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rss/parser.rb

(RSS::BaseListener.install_setter)
  (RSS::BaseListener.register_uri): changed fallback way.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2005-03-31 02:03:05 +00:00
parent ba269b1976
commit f8c3300069
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Thu Mar 31 11:00:36 2005 Kouhei Sutou <kou@cozmixng.org>
* lib/rss/parser.rb
(RSS::BaseListener.install_setter)
(RSS::BaseListener.register_uri): changed fallback way.
Thu Mar 31 08:25:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Mar 31 08:25:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (RUBYOPT): clear for the environment RubyGems installed. * common.mk (RUBYOPT): clear for the environment RubyGems installed.

View file

@ -127,12 +127,12 @@ module RSS
@@registered_uris = {} @@registered_uris = {}
def install_setter(uri, tag_name, setter) def install_setter(uri, tag_name, setter)
@@setter[uri] = {} unless @@setter.has_key?(uri) @@setter[uri] ||= {}
@@setter[uri][tag_name] = setter @@setter[uri][tag_name] = setter
end end
def register_uri(name, uri) def register_uri(name, uri)
@@registered_uris[name] = {} unless @@registered_uris.has_key?(name) @@registered_uris[name] ||= {}
@@registered_uris[name][uri] = nil @@registered_uris[name][uri] = nil
end end