2015-11-18 10:55:29 +01:00
|
|
|
|
|
|
|
class Symbol
|
|
|
|
|
2016-02-25 20:50:10 +01:00
|
|
|
def has_type?
|
2015-11-18 10:55:29 +01:00
|
|
|
true
|
|
|
|
end
|
2016-02-25 20:50:10 +01:00
|
|
|
def get_type
|
2016-12-30 13:10:49 +01:00
|
|
|
l = Parfait.object_space.classes[:Word].instance_type
|
2015-11-18 10:55:29 +01:00
|
|
|
#puts "LL #{l.class}"
|
|
|
|
l
|
|
|
|
end
|
|
|
|
def padded_length
|
2016-12-31 19:08:33 +01:00
|
|
|
Padding.padded( to_s.length + 4)
|
2015-11-18 10:55:29 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|