2017-04-01 20:28:57 +02:00
|
|
|
module Vool
|
2017-04-02 11:59:07 +02:00
|
|
|
class SendStatement < Statement
|
2017-04-06 15:06:51 +02:00
|
|
|
attr_reader :name , :receiver , :arguments
|
|
|
|
|
|
|
|
def initialize(name , receiver , arguments = [])
|
|
|
|
@name , @receiver , @arguments = name , receiver , arguments
|
2017-04-02 17:25:30 +02:00
|
|
|
end
|
2017-04-08 11:10:42 +02:00
|
|
|
|
|
|
|
def collect(arr)
|
|
|
|
@receiver.collect(arr)
|
|
|
|
@arguments.collect(arr)
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
2017-04-01 20:28:57 +02:00
|
|
|
end
|
|
|
|
end
|