Class: Blender3d::FunctionPointerType

Inherits:
Object
  • Object
show all
Defined in:
lib/blender-3d/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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

#inspectObject



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_sObject



95
96
97
# File 'lib/blender-3d/types.rb', line 95

def to_s
  "Function(#@return_type)"
end