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 75 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, "make_#{name}") module_eval("private\ndef setup_\#{name}(feed, current)\n@\#{name}.to_feed(feed, current)\nend\n\ndef make_\#{name}\nself.class::\#{class_name}.new(@maker)\nend\n", __FILE__, __LINE__ + 1) end