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.
64 65 66 |
# File 'lib/blender-3d/types.rb', line 64 def initialize(return_type) @return_type = return_type end |
Instance Attribute Details
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
62 63 64 |
# File 'lib/blender-3d/types.rb', line 62 def return_type @return_type end |
Instance Method Details
#inspect ⇒ Object
72 73 74 |
# File 'lib/blender-3d/types.rb', line 72 def inspect "#{@return_type.inspect} (*)()" end |
#read(reader) ⇒ Object
76 77 78 |
# File 'lib/blender-3d/types.rb', line 76 def read(reader) Pointer.new(reader.read_pointer) end |
#to_s ⇒ Object
68 69 70 |
# File 'lib/blender-3d/types.rb', line 68 def to_s "Function(#@return_type)" end |