rubyx/lib/vool/statements/send_statement.rb
2017-04-08 12:10:42 +03:00

17 lines
334 B
Ruby

module Vool
class SendStatement < Statement
attr_reader :name , :receiver , :arguments
def initialize(name , receiver , arguments = [])
@name , @receiver , @arguments = name , receiver , arguments
end
def collect(arr)
@receiver.collect(arr)
@arguments.collect(arr)
super
end
end
end