method
def_classed_element_without_accessor
def_classed_element_without_accessor(name, class_name=nil)
public
Hide source
# File lib/rss/maker/base.rb, line 76 def def_classed_element_without_accessor(name, class_name=nil) class_name ||= Utils.to_class_name(name) add_other_element(name) add_need_initialize_variable(name) do |object| object.send("make_#{name}") end module_eval( private def setup_#{name}(feed, current) @#{name}.to_feed(feed, current) end def make_#{name} self.class::#{class_name}.new(@maker) end, __FILE__, __LINE__ + 1) end