static public Method

XmlSimple.new(defaults = nil)

Creates and intializes a new XmlSimple object.

defaults:Default values for options.

Source Code

# File 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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.