Class: Blender3d::FunctionPointerType
- Inherits:
-
Object
- Object
- Blender3d::FunctionPointerType
- Defined in:
- lib/blender-3d/types.rb
Instance Attribute Summary collapse
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(return_type) ⇒ FunctionPointerType
constructor
A new instance of FunctionPointerType.
- #inspect ⇒ Object
- #read(reader) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(return_type) ⇒ FunctionPointerType
Returns a new instance of FunctionPointerType.
91 92 93 |
# File 'lib/blender-3d/types.rb', line 91 def initialize(return_type) @return_type = return_type end |
Instance Attribute Details
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
89 90 91 |
# File 'lib/blender-3d/types.rb', line 89 def return_type @return_type end |
Instance Method Details
#inspect ⇒ Object
99 100 101 |
# File 'lib/blender-3d/types.rb', line 99 def inspect "#{@return_type.inspect} (*)()" end |
#read(reader) ⇒ Object
103 104 105 |
# File 'lib/blender-3d/types.rb', line 103 def read(reader) Pointer.new(reader.read_pointer) end |
#to_s ⇒ Object
95 96 97 |
# File 'lib/blender-3d/types.rb', line 95 def to_s "Function(#@return_type)" end |