Class: GirFFI::GType
- Inherits:
-
Object
- Object
- GirFFI::GType
- Defined in:
- lib/gir_ffi/g_type.rb
Overview
Wrapper class providing extended functionality for a GType, which is normally just a kind of integer
Instance Method Summary collapse
- #class_size ⇒ Object
-
#initialize(gtype) ⇒ GType
constructor
A new instance of GType.
- #instance_size ⇒ Object
- #to_i ⇒ Object
Constructor Details
#initialize(gtype) ⇒ GType
Returns a new instance of GType.
6 7 8 |
# File 'lib/gir_ffi/g_type.rb', line 6 def initialize(gtype) @gtype = gtype end |
Instance Method Details
#class_size ⇒ Object
14 15 16 |
# File 'lib/gir_ffi/g_type.rb', line 14 def class_size type_query.class_size end |
#instance_size ⇒ Object
18 19 20 |
# File 'lib/gir_ffi/g_type.rb', line 18 def instance_size type_query.instance_size end |
#to_i ⇒ Object
10 11 12 |
# File 'lib/gir_ffi/g_type.rb', line 10 def to_i @gtype end |