Class: Estreet::CallExpression
- Inherits:
-
Expression
- Object
- Node
- Expression
- Estreet::CallExpression
- Defined in:
- lib/estreet/call_expression.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(callee, arguments) ⇒ CallExpression
constructor
A new instance of CallExpression.
Methods inherited from Expression
#[], #call, coerce, #property, #to_expression, #to_statement
Methods inherited from Node
Constructor Details
#initialize(callee, arguments) ⇒ CallExpression
Returns a new instance of CallExpression.
3 4 5 6 |
# File 'lib/estreet/call_expression.rb', line 3 def initialize(callee, arguments) @callee = callee.to_expression @arguments = arguments.map {|arg| arg.to_expression } end |
Instance Method Details
#attributes ⇒ Object
8 9 10 |
# File 'lib/estreet/call_expression.rb', line 8 def attributes super.merge(callee: @callee, arguments: @arguments) end |