class Blender3d::FixedLengthStringType
Attributes
length[R]
Public Class Methods
new(length)
click to toggle source
# File lib/blender-3d/types/fixed_length_string_type.rb, line 6 def initialize(length) @length = length end
Public Instance Methods
inspect()
click to toggle source
# File lib/blender-3d/types/fixed_length_string_type.rb, line 14 def inspect "char[#@length]" end
read(reader)
click to toggle source
# File lib/blender-3d/types/fixed_length_string_type.rb, line 18 def read(reader) reader.read(@length).gsub(/\0.*$/, '') end
to_s()
click to toggle source
# File lib/blender-3d/types/fixed_length_string_type.rb, line 10 def to_s "FixedLengthString(#@length)" end