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

@ -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