Class: Blender3d::PointerType
- Inherits:
-
Object
- Object
- Blender3d::PointerType
- Defined in:
- lib/blender-3d/types.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ PointerType
constructor
A new instance of PointerType.
- #inspect ⇒ Object
- #read(reader) ⇒ Object
- #to_s ⇒ Object
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
#type ⇒ Object (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
#inspect ⇒ Object
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_s ⇒ Object
48 49 50 |
# File 'lib/blender-3d/types.rb', line 48 def to_s "Pointer(#@type)" end |