class method self.new

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

self.new(defaults = nil)

Creates and initializes a new XmlSimple object.

defaults

Default values for options.

Parameters

defaults opt = nil
Source
# File activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 128
  def initialize(defaults = nil)
    unless defaults.nil? || defaults.instance_of?(Hash)
      raise ArgumentError, "Options have to be a Hash."
    end
    @default_options = normalize_option_names(defaults, (KNOWN_OPTIONS['in'] + KNOWN_OPTIONS['out']).uniq)
    @options = Hash.new
    @_var_values = nil
  end

Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 128 · View on GitHub · Improve this page · Find usages on GitHub

Defined in XmlSimple

Type at least 2 characters to search.

↑↓ navigate · open · esc close