method
content_writer
content_writer(name, disp_name=name)
private
Hide source
# File lib/rss/rss.rb, line 513 def content_writer(name, disp_name=name) klass_name = "self.class::#{Utils.to_class_name(name)}" module_eval("def \#{name}=(new_value)\nif new_value.is_a?(\#{klass_name})\n@\#{name} = new_value\nelse\n@\#{name} = \#{klass_name}.new\n@\#{name}.content = new_value\nend\nend\n", *get_file_and_line_from_caller(2)) end