Class: RubyGS::BoxName

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/ruby_gs/structs/box_name.rb

Overview

A String representing the name of a PC Box.

It can only contain 8 visible characters, the 9th being a terminator.

Instance Method Summary collapse

Instance Method Details

#getObject



13
14
15
# File 'lib/ruby_gs/structs/box_name.rb', line 13

def get
  TextGS.decode self.val[0..7]
end

#set(value) ⇒ Object



17
18
19
# File 'lib/ruby_gs/structs/box_name.rb', line 17

def set value
  self.val = TextGS.encode value
end