2016-12-13 10:02:53 +01:00
|
|
|
# A typed method object is a description of the method, it's name etc
|
2015-05-26 19:17:43 +02:00
|
|
|
#
|
|
|
|
# But the code that the method represents, the binary, is held as an array
|
|
|
|
# in one of these.
|
|
|
|
#
|
|
|
|
|
|
|
|
module Parfait
|
|
|
|
# obviously not a "Word" but a ByteArray , but no such class yet
|
2016-12-13 10:02:53 +01:00
|
|
|
# As our String (Word) on the other hand has no encoding (yet) it is close enough
|
2015-11-14 14:04:04 +01:00
|
|
|
class BinaryCode < Word
|
2015-06-03 09:01:59 +02:00
|
|
|
|
2015-05-28 20:10:27 +02:00
|
|
|
def to_s
|
2015-11-14 14:04:04 +01:00
|
|
|
"BinaryCode #{self.char_length}"
|
2015-05-28 20:10:27 +02:00
|
|
|
end
|
2015-06-03 09:01:59 +02:00
|
|
|
|
2015-05-26 19:17:43 +02:00
|
|
|
end
|
|
|
|
end
|