install_date_element(tag_name, uri, occurs, name=nil, type=nil, disp_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 282
    def install_date_element(tag_name, uri, occurs, name=nil, type=nil, disp_name=nil)
      name ||= tag_name
      type ||= :w3cdtf
      disp_name ||= name
      self::ELEMENTS << name
      add_need_initialize_variable(name)
      install_model(tag_name, uri, occurs, name)

      # accessor
      convert_attr_reader name
      date_writer(name, type, disp_name)

      install_element(name) do |n, elem_name|
                if @#{n}          rv = "\#{indent}<#{elem_name}>"          value = html_escape(@#{n}.#{type})          if need_convert            rv << convert(value)          else            rv << value          end            rv << "</#{elem_name}>"          rv        else          ''        end
      end

    end
Register or log in to add new notes.