diff options
Diffstat (limited to 'lib/rss/2.0.rb')
-rw-r--r-- | lib/rss/2.0.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/rss/2.0.rb b/lib/rss/2.0.rb index aa8bee479a..6ba22805b0 100644 --- a/lib/rss/2.0.rb +++ b/lib/rss/2.0.rb @@ -131,10 +131,14 @@ EOT content_setup - def initialize(isPermaLink=nil, content=nil) - super() - self.isPermaLink = isPermaLink - self.content = content + def initialize(*args) + if Utils.element_initialize_arguments?(args) + super + else + super() + self.isPermaLink = args[0] + self.content = args[1] + end end alias_method :_PermaLink?, :PermaLink? |