method
install_have_child_element
install_have_child_element(tag_name, uri, occurs, name=nil, type=nil)
public
Hide source
# File lib/rss/rss.rb, line 167 def install_have_child_element(tag_name, uri, occurs, name=nil, type=nil) name ||= tag_name add_need_initialize_variable(name) install_model(tag_name, uri, occurs, name) writer_type, reader_type = type def_corresponded_attr_writer name, writer_type def_corresponded_attr_reader name, reader_type install_element(name) do |n, elem_name| if @#{n} "\#{@#{n}.to_s(need_convert, indent)}" else '' end end end