fix name expression and test

plus various cleaning and rename off call_site
This commit is contained in:
Torsten Ruger
2015-05-08 14:34:46 +03:00
parent 2fde50c27a
commit 6f2affaf36
5 changed files with 31 additions and 33 deletions

View File

@ -1,7 +1,7 @@
require_relative "meta_class"
module Virtual
# class is mainly a list of methods with a name (for now)
# layout of object is seperated into Layout
class BootClass < Virtual::ObjectConstant
@ -22,8 +22,7 @@ module Virtual
def get_instance_method fname
fname = fname.to_sym
f = @instance_methods.detect{ |f| f.name == fname }
f
@instance_methods.detect{ |fun| fun.name == fname }
end
# get the method and if not found, try superclasses. raise error if not found
@ -52,4 +51,4 @@ module Virtual
end
end
end