17 lines
309 B
Ruby
17 lines
309 B
Ruby
|
module RKelly
|
||
|
module Nodes
|
||
|
class FunctionCallNode < Node
|
||
|
attr_reader :arguments
|
||
|
def initialize(value, arguments)
|
||
|
super(value)
|
||
|
@arguments = arguments
|
||
|
end
|
||
|
|
||
|
def ==(other)
|
||
|
super && @arguments == other.arguments
|
||
|
end
|
||
|
alias :=~ :==
|
||
|
end
|
||
|
end
|
||
|
end
|