return compiler, not generated mom

does make the tests more verbose, but the code cleaner
This commit is contained in:
Torsten Ruger
2018-07-01 11:57:17 +03:00
parent f7dfa1c45e
commit 1a97408e22
3 changed files with 4 additions and 9 deletions

View File

@ -11,7 +11,7 @@ module Vool
def to_mom(clazz)
@clazz = clazz || raise( "no class in #{self}")
method = @clazz.add_method_for(name , make_arg_type , make_frame , body )
method.compile_to_risc(clazz.instance_type)
method.compiler_for(clazz.instance_type)
end
def each(&block)