fix test ripples and minor parfait naming
Parfait ruby and boot names desynced, fixed that
This commit is contained in:
@ -37,7 +37,7 @@ module Parfait
|
||||
def get_instance_method( fname )
|
||||
raise "get_instance_method #{fname}.#{fname.class}" unless fname.is_a?(Symbol)
|
||||
#if we had a hash this would be easier. Detect or find would help too
|
||||
self.methods.find {|m| m.name == fname }
|
||||
self.instance_methods.find {|m| m.name == fname }
|
||||
end
|
||||
|
||||
# get the method and if not found, try superclasses. raise error if not found
|
||||
|
@ -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
|
||||
|
@ -10,7 +10,7 @@ module Parfait
|
||||
# as it changes during the course of it's life. Types do not change. Objects have
|
||||
# type, and so only indirectly a class.
|
||||
#
|
||||
class VoolMethod
|
||||
class VoolMethod < Object
|
||||
|
||||
attr_reader :name , :args_type , :frame_type , :source
|
||||
|
||||
|
Reference in New Issue
Block a user