Class: Blender3d::FunctionPointerType
- Inherits:
-
Object
- Object
- Blender3d::FunctionPointerType
- Defined in:
- lib/blender-3d/types/function_pointer_type.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.
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_type ⇒ Object (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
#inspect ⇒ Object
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_s ⇒ Object
9 10 11 |
# File 'lib/blender-3d/types/function_pointer_type.rb', line 9 def to_s "Function(#@return_type)" end |