better tests to find sneaky module bug

This commit is contained in:
Torsten Ruger
2015-07-28 16:19:10 +03:00
parent 5fd04ee0c5
commit 3fb08acf3f
3 changed files with 36 additions and 3 deletions

View File

@ -54,8 +54,9 @@ module Parfait
def create_instance_method method_name , arg_names
raise "uups #{method_name}.#{method_name.class}" unless method_name.is_a?(Symbol)
clazz = get_layout().object_class()
clazz = object_layout().object_class()
raise "??? #{method_name}" unless clazz
puts "Self: #{self.class} clazz: #{clazz.name}"
Method.new( clazz , method_name , arg_names )
end