17 lines
225 B
Ruby
17 lines
225 B
Ruby
|
|
class Symbol
|
|
|
|
def has_type?
|
|
true
|
|
end
|
|
def get_type
|
|
l = Parfait.object_space.classes[:Word].instance_type
|
|
#puts "LL #{l.class}"
|
|
l
|
|
end
|
|
def padded_length
|
|
Padding.padded( to_s.length + 4)
|
|
end
|
|
|
|
end
|