13 lines
265 B
Ruby
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
|