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

@ -42,8 +42,13 @@ module Mom
cache_entry << from
callable_method << cache_entry[:cached_method]
end
when Integer
builder.build do
arguments << message[:arguments]
callable_method << arguments[ from ]
end
else
raise "unknown source #{method_source}"
raise "unknown source #{method_source.class}:#{method_source}"
end
build_message_data(builder)
return builder.built