Class: Baba::Expr::Self
- Inherits:
-
Object
- Object
- Baba::Expr::Self
- Defined in:
- lib/baba/expr.rb
Instance Attribute Summary collapse
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(keyword) ⇒ Self
constructor
A new instance of Self.
Constructor Details
#initialize(keyword) ⇒ Self
Returns a new instance of Self.
102 103 104 |
# File 'lib/baba/expr.rb', line 102 def initialize(keyword) @keyword = keyword end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
100 101 102 |
# File 'lib/baba/expr.rb', line 100 def keyword @keyword end |
Instance Method Details
#accept(visitor) ⇒ Object
106 107 108 |
# File 'lib/baba/expr.rb', line 106 def accept(visitor) visitor.visit_self_expr(self) end |