rubyx/lib/vool/statements/send_statement.rb

17 lines
334 B
Ruby
Raw Normal View History

2017-04-01 20:28:57 +02:00
module Vool
2017-04-02 11:59:07 +02:00
class SendStatement < Statement
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