fix super class with name mixup

This commit is contained in:
Torsten Ruger
2015-11-07 19:37:38 +02:00
parent 37928b8591
commit 1d07c1fb95
2 changed files with 4 additions and 7 deletions

View File

@ -58,10 +58,12 @@ module Parfait
# instantiated. By that logic it should maybe be part of vm rather.
# On the other hand vague plans to load the hierachy from sof exist, so for now...
def set_super_class_name sup
raise "super_class_name must be a name, not #{sup}" unless sup.is_a?(Symbol)
self.super_class_name = sup
end
def super_class
puts "Superclass #{super_class_name}"
Parfait::Space.object_space.get_class_by_name(self.super_class_name)
end