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

* lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#initialize):

kept backward compatibility.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2007-02-11 13:12:16 +00:00
parent ef4273db33
commit 027eb16fca
2 changed files with 10 additions and 1 deletions

View file

@ -1,6 +1,11 @@
Sun Feb 11 22:11:05 2007 Kouhei Sutou <kou@cozmixng.org>
* lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#initialize):
kept backward compatibility.
Sun Feb 11 22:10:08 2007 Kouhei Sutou <kou@cozmixng.org>
* lib/rss/parser.rb (RSS::ListenerMixin::start_else_element): used
* lib/rss/parser.rb (RSS::ListenerMixin#start_else_element): used
const_defined? instead of constants.include?.
Sun Feb 11 18:47:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>

View file

@ -35,6 +35,10 @@ module RSS
attr_accessor(*ATTRIBUTES)
attr_accessor(:do_validate)
def initialize(*attrs)
if attrs.size == 1 and
(attrs.first.is_a?(Hash) or attrs.first.is_a?(Array))
attrs = attrs.first
end
@do_validate = true
ATTRIBUTES.each do |attr|
__send__("#{attr}=", nil)