move common statements into its only use in vool

This commit is contained in:
Torsten Ruger
2018-03-15 20:40:21 +05:30
parent 79bf416e58
commit ad4690d719
6 changed files with 37 additions and 44 deletions

View File

@ -60,7 +60,7 @@ module Vool
type = @receiver.ct_type
called_method = type.resolve_method(@name)
raise "No method #{@name} for #{type}" unless called_method
Mom::Statements.new( message_setup(in_method) << Mom::SimpleCall.new( called_method) )
message_setup(in_method) << Mom::SimpleCall.new( called_method)
end
# this breaks cleanly into two parts: