Class: RbVmomi::BasicTypes::ObjectWithMethods
- Inherits:
-
ObjectWithProperties
- Object
- Base
- ObjectWithProperties
- RbVmomi::BasicTypes::ObjectWithMethods
- Defined in:
- lib/rbvmomi/basic_types.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.methods_desc ⇒ Object
Returns the value of attribute methods_desc.
Class Method Summary collapse
Methods inherited from ObjectWithProperties
#_get_property, #_set_property, find_prop_desc, full_props_desc, full_props_set
Methods inherited from Base
Class Attribute Details
.methods_desc ⇒ Object
Returns the value of attribute methods_desc.
69 70 71 |
# File 'lib/rbvmomi/basic_types.rb', line 69 def methods_desc @methods_desc end |
Class Method Details
.full_methods_desc ⇒ Object
XXX cache
83 84 85 |
# File 'lib/rbvmomi/basic_types.rb', line 83 def full_methods_desc (self == ObjectWithMethods ? {} : superclass.full_methods_desc).merge methods_desc end |
.init(name = self.name, props = [], methods = {}) ⇒ Object
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/rbvmomi/basic_types.rb', line 71 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 |