install_have_children_element(tag_name, uri, occurs, name=nil, plural_name=nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rss/rss.rb, line 187
    def install_have_children_element(tag_name, uri, occurs, name=nil, plural_name=nil)
      name ||= tag_name
      plural_name ||= "#{name}s"
      add_have_children_element(name, plural_name)
      add_plural_form(name, plural_name)
      install_model(tag_name, uri, occurs, plural_name, true)

      def_children_accessor(name, plural_name)
      install_element(name, "s") do |n, elem_name|
                rv = []        @#{n}.each do |x|          value = "\#{x.to_s(need_convert, indent)}"          rv << value if /\\A\\s*\\z/ !~ value        end        rv.join("\n")
      end
    end
Register or log in to add new notes.