Class: Vixen::Model::Base
- Inherits:
-
Object
- Object
- Vixen::Model::Base
- Defined in:
- lib/vixen/model/base.rb
Instance Attribute Summary collapse
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
Class Method Summary collapse
Instance Method Summary collapse
- #get_string_property(property_id) ⇒ Object
-
#initialize(handle) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(handle) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/vixen/model/base.rb', line 8 def initialize(handle) @handle = handle ObjectSpace.define_finalizer( self, self.class.finalize(handle) ) end |
Instance Attribute Details
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
6 7 8 |
# File 'lib/vixen/model/base.rb', line 6 def handle @handle end |
Class Method Details
Instance Method Details
#get_string_property(property_id) ⇒ Object
20 21 22 |
# File 'lib/vixen/model/base.rb', line 20 def get_string_property(property_id) Vixen::Bridge.get_string_property handle, property_id end |