private Method

SOAPElement.add_accessor(name)

There's no documentation for this item.

Source Code

# File soap/baseData.rb, line 661
def add_accessor(name)
  methodname = name
  if self.respond_to?(methodname)
    methodname = safe_accessor_name(methodname)
  end
  Mapping.define_singleton_method(self, methodname) do
    @data[@array.index(name)]
  end
  Mapping.define_singleton_method(self, methodname + '=') do |value|
    @data[@array.index(name)] = value
  end
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.