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.



64
65
66
# File 'lib/blender-3d/types.rb', line 64

def initialize(return_type)
  @return_type = return_type
end

Instance Attribute Details

#return_typeObject (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

#inspectObject



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_sObject



68
69
70
# File 'lib/blender-3d/types.rb', line 68

def to_s
  "Function(#@return_type)"
end