more symbol related fixes

This commit is contained in:
Torsten Ruger
2015-06-01 17:31:35 +03:00
parent 5726d2c181
commit aea8f20be5
5 changed files with 22 additions and 20 deletions

View File

@ -36,7 +36,7 @@ module Virtual
# compile code then works with the method, but adds code tot the info
def self.create_method( class_name , method_name , args)
raise "uups #{class_name}.#{class_name.class}" unless class_name.is_a? Symbol
raise "uups #{method_name}.#{method_name.class}" unless class_name.is_a? Symbol
raise "uups #{method_name}.#{method_name.class}" unless method_name.is_a? Symbol
clazz = Virtual.machine.space.get_class_by_name class_name
raise "No such class #{class_name}" unless clazz
method = clazz.create_instance_method( method_name , Virtual.new_list(args))