APIdock / Ruby
/
Browse About
method

new

v2_2_9 - Show latest stable - Class: RSS::Element
new(do_validate=true, attrs=nil)
public

No documentation available.

# File lib/rss/rss.rb, line 856
    def initialize(do_validate=true, attrs=nil)
      @parent = nil
      @converter = nil
      if attrs.nil? and (do_validate.is_a?(Hash) or do_validate.is_a?(Array))
        do_validate, attrs = true, do_validate
      end
      @do_validate = do_validate
      initialize_variables(attrs || {})
    end

Related methods

  • Instance methods
  • convert
  • converter=
  • full_name
  • have_xml_content?
  • need_base64_encode?
  • set_next_element
  • tag_name
  • to_s
  • valid?
  • validate
  • validate_for_stream
  • Class methods
  • add_have_children_element
  • add_need_initialize_variable
  • add_plural_form
  • add_to_element_method
  • content_setup
  • def_corresponded_attr_reader
  • def_corresponded_attr_writer
  • get_attributes
  • have_children_elements
  • have_content?
  • inherited
  • inherited_base
  • install_get_attribute
  • install_model
  • install_must_call_validator
  • install_ns
  • models
  • must_call_validators
  • need_initialize_variables
  • need_parent?
  • new
  • plural_forms
  • required_prefix
  • required_uri
  • tag_name
  • to_element_methods
  • Protected methods
  • protectedhave_required_elements?
  • Private methods
  • private__validate
  • private_attrs
  • private_tags
  • private_validate
  • privatecalc_indent
  • privatechildren
  • privatecollect_attrs
  • privatecontent_is_set?
  • privateempty_content?
  • privateinitialize_have_children_elements
  • privateinitialize_variables
  • privatemake_start_tag
  • privatetag
  • privatetag_filter
  • privatetag_name_with_prefix
  • privatevalidate_attribute
  • privatexmled_content
APIdock API Documentation Browser

© 2026 APIdock