Class: Blender3d::PointerType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ PointerType

Returns a new instance of PointerType.



44
45
46
# File 'lib/blender-3d/types.rb', line 44

def initialize(type)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



42
43
44
# File 'lib/blender-3d/types.rb', line 42

def type
  @type
end

Instance Method Details

#inspectObject



52
53
54
# File 'lib/blender-3d/types.rb', line 52

def inspect
  "#{@type.inspect}*"
end

#read(reader) ⇒ Object



56
57
58
# File 'lib/blender-3d/types.rb', line 56

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

#to_sObject



48
49
50
# File 'lib/blender-3d/types.rb', line 48

def to_s
  "Pointer(#@type)"
end