Class: BetaBrite::Memory::Text

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) ⇒ Text

Returns a new instance of Text.



48
49
50
51
52
53
54
55
# File 'lib/memory/memory.rb', line 48

def initialize(label, size)
  super(  :label  => label,
          :type   => TEXT,
          :locked => UNLOCKED,
          :size   => sprintf("%04x", size),
          :time   => 'FF00'
       )
end