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