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