diff options
Diffstat (limited to 'lib/rss/parser.rb')
-rw-r--r-- | lib/rss/parser.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index fb6c55fb7..ecfde8376 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -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 |