fix test ripples and minor parfait naming

Parfait ruby and boot names desynced, fixed that
This commit is contained in:
Torsten Ruger
2018-06-29 21:03:06 +03:00
parent ae35fed0ab
commit 7377522417
9 changed files with 12 additions and 12 deletions

View File

@ -24,7 +24,7 @@ module Parfait
super()
@name = name
@super_class_name = superclass
@methods = {}
@instance_methods = List.new
set_instance_type( instance_type )
end
@ -44,11 +44,11 @@ module Parfait
def add_method(method)
raise "Must be untyped method #{method}" unless method.is_a? Parfait::VoolMethod
@methods[method.name] = method
@instance_methods.push(method)
end
def get_method(name)
@methods[name]
@instance_methods.find{|m| m.name == name }
end
# adding an instance changes the instance_type to include that variable