class RbVmomi::BasicTypes::ObjectWithMethods

Attributes

methods_desc[RW]

Public Class Methods

full_methods_desc() click to toggle source

XXX cache

# File lib/rbvmomi/basic_types.rb, line 76
def full_methods_desc
  (self == ObjectWithMethods ? {} : superclass.full_methods_desc).merge methods_desc
end
init(name=self.name, props=[], methods={}) click to toggle source
# File lib/rbvmomi/basic_types.rb, line 64
def init name=self.name, props=[], methods={}
  super name, props
  @methods_desc = methods

  @methods_desc.each do |k,d|
    sym = k.to_sym
    define_method(sym) { |*args| _call sym, *args }
    define_method(:"#{sym}!") { |*args| _call sym, *args }
  end
end