Class: Baba::Expr::Super
- Inherits:
-
Object
- Object
- Baba::Expr::Super
- Defined in:
- lib/baba/expr.rb
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(keyword, method) ⇒ Super
constructor
A new instance of Super.
Constructor Details
#initialize(keyword, method) ⇒ Super
Returns a new instance of Super.
114 115 116 |
# File 'lib/baba/expr.rb', line 114 def initialize(keyword, method) @keyword = keyword; @method = method end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
112 113 114 |
# File 'lib/baba/expr.rb', line 112 def keyword @keyword end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
112 113 114 |
# File 'lib/baba/expr.rb', line 112 def method @method end |
Instance Method Details
#accept(visitor) ⇒ Object
118 119 120 |
# File 'lib/baba/expr.rb', line 118 def accept(visitor) visitor.visit_super_expr(self) end |