temporary word hack to make it look liked indexed

This commit is contained in:
Torsten Ruger 2015-11-09 23:28:40 +02:00
parent 5d80c38c87
commit a20f1570ee

View File

@ -16,6 +16,13 @@ module Parfait
class Word < Object class Word < Object
attribute :char_length attribute :char_length
#semi "indexed" methods for interpreter
def self.get_length_index
2
end
def self.get_indexed i
i + get_length_index
end
# initialize with length. For now we try to keep all non-parfait (including String) out # initialize with length. For now we try to keep all non-parfait (including String) out
# String will contain spaces for non-zero length # String will contain spaces for non-zero length
# Register provides methods to create Parfait objects from ruby # Register provides methods to create Parfait objects from ruby