private Method

SOAPElement.add_accessor(name)

There's no documentation for this item.

Source Code

# File soap/baseData.rb, line 674
def add_accessor(name)
  methodname = safe_accessor_name(name)
  instance_eval "def \#{methodname}\n@data[@array.index(\#{name.dump})]\nend\n\ndef \#{methodname}=(value)\n@data[@array.index(\#{name.dump})] = value\nend\n"
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.