зеркало из https://github.com/github/ruby.git
* 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:
Родитель
ba269b1976
Коммит
f8c3300069
|
@ -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>
|
||||
|
||||
* common.mk (RUBYOPT): clear for the environment RubyGems installed.
|
||||
|
|
|
@ -127,12 +127,12 @@ module RSS
|
|||
@@registered_uris = {}
|
||||
|
||||
def install_setter(uri, tag_name, setter)
|
||||
@@setter[uri] = {} unless @@setter.has_key?(uri)
|
||||
@@setter[uri] ||= {}
|
||||
@@setter[uri][tag_name] = setter
|
||||
end
|
||||
|
||||
def register_uri(name, uri)
|
||||
@@registered_uris[name] = {} unless @@registered_uris.has_key?(name)
|
||||
@@registered_uris[name] ||= {}
|
||||
@@registered_uris[name][uri] = nil
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче