rubyx/lib/register/parfait/binary_code.rb
Torsten Ruger 4b05b48197 some docs
2016-12-06 11:38:09 +02:00

18 lines
416 B
Ruby

# A method object is a description of the method, it's name etc
#
# 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
# As String on the other hand has no encoding (yet) it is close enough
class BinaryCode < Word
def to_s
"BinaryCode #{self.char_length}"
end
end
end