Class: Baba::Expr::Call
- Inherits:
-
Object
- Object
- Baba::Expr::Call
- Defined in:
- lib/baba/expr.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#callee ⇒ Object
readonly
Returns the value of attribute callee.
-
#paren ⇒ Object
readonly
Returns the value of attribute paren.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(callee, paren, arguments) ⇒ Call
constructor
A new instance of Call.
Constructor Details
#initialize(callee, paren, arguments) ⇒ Call
Returns a new instance of Call.
42 43 44 |
# File 'lib/baba/expr.rb', line 42 def initialize(callee, paren, arguments) @callee = callee; @paren = paren; @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
40 41 42 |
# File 'lib/baba/expr.rb', line 40 def arguments @arguments end |
#callee ⇒ Object (readonly)
Returns the value of attribute callee.
40 41 42 |
# File 'lib/baba/expr.rb', line 40 def callee @callee end |
#paren ⇒ Object (readonly)
Returns the value of attribute paren.
40 41 42 |
# File 'lib/baba/expr.rb', line 40 def paren @paren end |
Instance Method Details
#accept(visitor) ⇒ Object
46 47 48 |
# File 'lib/baba/expr.rb', line 46 def accept(visitor) visitor.visit_call_expr(self) end |