Class: RKelly::Nodes::FunctionCallNode
- Defined in:
- lib/rkelly/nodes/function_call_node.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #=~)
-
#initialize(value, arguments) ⇒ FunctionCallNode
constructor
A new instance of FunctionCallNode.
Methods inherited from Node
#===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(value, arguments) ⇒ FunctionCallNode
Returns a new instance of FunctionCallNode.
5 6 7 8 |
# File 'lib/rkelly/nodes/function_call_node.rb', line 5 def initialize(value, arguments) super(value) @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
4 5 6 |
# File 'lib/rkelly/nodes/function_call_node.rb', line 4 def arguments @arguments end |
Instance Method Details
#==(other) ⇒ Object Also known as: =~
10 11 12 |
# File 'lib/rkelly/nodes/function_call_node.rb', line 10 def ==(other) super && @arguments == other.arguments end |