Class: BetaBrite::Memory::String

Inherits:
BetaBrite::Memory show all
Defined in:
lib/memory/memory.rb

Constant Summary

Constants inherited from BetaBrite::Memory

COMMAND_CODE, DOTS, LOCKED, STRING, TEXT, UNLOCKED

Instance Attribute Summary

Attributes inherited from BetaBrite::Memory

#label, #locked, #size, #time, #type

Instance Method Summary collapse

Methods inherited from BetaBrite::Memory

clear, #format

Constructor Details

#initialize(label, size) ⇒ String

Returns a new instance of String.



37
38
39
40
41
42
43
44
# File 'lib/memory/memory.rb', line 37

def initialize(label, size)
  super(  :label  => label,
          :type   => STRING,
          :locked => LOCKED,
          :size   => sprintf("%04x", size),
          :time   => '0000'
       )
end