bring the blocks down to mom level

reusing message_setup, but adding yield specific instructions
This commit is contained in:
Torsten Ruger
2018-07-24 11:35:49 +03:00
parent d80ef4bf4e
commit f5c284b3a0
10 changed files with 131 additions and 36 deletions

View File

@ -31,7 +31,7 @@ module Vool
def make_arg_type( )
type_hash = {}
@args.each {|arg| type_hash[arg] = :Object }
type_hash[:implicit_block] = :Object if has_yield?
type_hash[:implicit_block] = :Block if has_yield?
Parfait::NamedList.type_for( type_hash )
end