method
def_csv_element
def_csv_element(name, type=nil)
public
Hide source
# File lib/rss/maker/base.rb, line 160 def def_csv_element(name, type=nil) def_other_element_without_accessor(name) attr_reader(name) converter = "" if type == :integer converter = "{|v| Integer(v)}" end module_eval("def \#{name}=(value)\n@\#{name} = Utils::CSV.parse(value)\#{converter}\nend\n", __FILE__, __LINE__ + 1) end