rubyx/lib/vool/statements/send_statement.rb

17 lines
334 B
Ruby
Raw Normal View History

2017-04-01 21:28:57 +03:00
module Vool
2017-04-02 12:59:07 +03:00
class SendStatement < Statement
attr_reader :name , :receiver , :arguments
def initialize(name , receiver , arguments = [])
@name , @receiver , @arguments = name , receiver , arguments
2017-04-02 18:25:30 +03:00
end
2017-04-08 12:10:42 +03:00
def collect(arr)
@receiver.collect(arr)
@arguments.collect(arr)
super
end
2017-04-01 21:28:57 +03:00
end
end