pass parfait method to to_mom

previously it was the toll incarnation, and that is almost the same
But for the type of self. This s by definition only known in the
parfait method
And we need it off course for type checking/dispatch
This commit is contained in:
Torsten Ruger
2018-03-16 11:03:29 +05:30
parent 3909bdcc7d
commit ea882f403a
8 changed files with 20 additions and 18 deletions

View File

@ -8,7 +8,7 @@ module Vool
end
def to_mom( method )
if method.args_type.variable_index(@name)
if method.arguments.variable_index(@name)
type = :arguments
else
type = :frame