summaryrefslogtreecommitdiff
path: root/lib/rss/maker/syndication.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rss/maker/syndication.rb')
-rw-r--r--lib/rss/maker/syndication.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rss/maker/syndication.rb b/lib/rss/maker/syndication.rb
index 72d00c6..3717086 100644
--- a/lib/rss/maker/syndication.rb
+++ b/lib/rss/maker/syndication.rb
@@ -10,8 +10,8 @@ module RSS
::RSS::SyndicationModel::ELEMENTS.each do |element|
klass.add_need_initialize_variable(element)
klass.add_other_element(element)
- klass.__send__(:attr_accessor, element)
- klass.module_eval(<<-EOC, __FILE__, __LINE__)
+ klass.module_eval(<<-EOC, __FILE__, __LINE__+1)
+ attr_accessor :#{element}
def setup_#{element}(rss, current)
if #{element} and current.respond_to?(:#{element}=)
current.#{element} = @#{element} if @#{element}