rubyx/lib/vm/parfait/symbol_adapter.rb
2017-01-14 19:28:44 +02:00

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