rubyx/lib/vm/tree/call_site.rb
2017-01-14 19:28:44 +02:00

13 lines
265 B
Ruby

module Vm
module Tree
class CallSite < Expression
attr_accessor :name , :receiver , :arguments
def to_s
str = receiver ? "#{receiver}.#{name}" : name.to_s
str + arguments.collect{|a| a.to_s }.join(",")
end
end
end
end