get binary code to work

This commit is contained in:
Torsten Ruger
2015-05-28 21:10:27 +03:00
parent 5845bde33a
commit c28430698c
4 changed files with 36 additions and 13 deletions

View File

@ -10,5 +10,17 @@ module Parfait
# obviously not a "Word" but a ByteArray , but no such class yet
# As on the other hand has no encoding (yet) it is close enough
class BinaryCode < Word
def initialize name
super(0)
@name = name
end
# this is a sof check if there are instance variables or "structure"
# have to override false, as word answers true
def is_value?
false
end
def to_s
"BinaryCode #{@name}"
end
end
end