Class: Blender3d::FunctionPointerType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(return_type) ⇒ FunctionPointerType

Returns a new instance of FunctionPointerType.



5
6
7
# File 'lib/blender-3d/types/function_pointer_type.rb', line 5

def initialize(return_type)
  @return_type = return_type
end

Instance Attribute Details

#return_typeObject (readonly)

Returns the value of attribute return_type.



3
4
5
# File 'lib/blender-3d/types/function_pointer_type.rb', line 3

def return_type
  @return_type
end

Instance Method Details

#inspectObject



13
14
15
# File 'lib/blender-3d/types/function_pointer_type.rb', line 13

def inspect
  "#{@return_type.inspect} (*)()"
end

#read(reader) ⇒ Object



17
18
19
# File 'lib/blender-3d/types/function_pointer_type.rb', line 17

def read(reader)
  Pointer.new(reader.read_pointer)
end

#to_sObject



9
10
11
# File 'lib/blender-3d/types/function_pointer_type.rb', line 9

def to_s
  "Function(#@return_type)"
end