rename word_length to padded length
with word_length i was never sure if it was the padded version or not
This commit is contained in:
@ -99,8 +99,8 @@ module Parfait
|
||||
# This is off course 0 for a list, unless someone squeezed an instance variable in
|
||||
# but additionally, the amount of data comes on top.
|
||||
# unfortuntely we can't just use super because of the Padding
|
||||
def word_length
|
||||
padded_words( get_layout().get_length() + get_length() )
|
||||
def padded_length
|
||||
padded_words( get_layout().instance_length + get_length() )
|
||||
end
|
||||
|
||||
def each
|
||||
|
@ -92,8 +92,8 @@ module Parfait
|
||||
get_layout().variable_index(name)
|
||||
end
|
||||
|
||||
def word_length
|
||||
padded_words( get_layout().get_length() )
|
||||
def padded_length
|
||||
padded_words( get_layout().instance_length )
|
||||
end
|
||||
|
||||
# Object
|
||||
|
@ -28,8 +28,8 @@ class Symbol
|
||||
#puts "LL #{l.class}"
|
||||
l
|
||||
end
|
||||
def word_length
|
||||
padded to_s.length
|
||||
def padded_length
|
||||
padded to_s.length + 4
|
||||
end
|
||||
# not the prettiest addition to the game, but it wasn't me who decided symbols are frozen in 2.x
|
||||
def cache_positions
|
||||
|
Reference in New Issue
Block a user