Class: Baba::Expr::Break
- Inherits:
-
Object
- Object
- Baba::Expr::Break
- 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) ⇒ Break
constructor
A new instance of Break.
Constructor Details
#initialize(keyword) ⇒ Break
Returns a new instance of Break.
30 31 32 |
# File 'lib/baba/expr.rb', line 30 def initialize(keyword) @keyword = keyword end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
28 29 30 |
# File 'lib/baba/expr.rb', line 28 def keyword @keyword end |
Instance Method Details
#accept(visitor) ⇒ Object
[View source]
34 35 36 |
# File 'lib/baba/expr.rb', line 34 def accept(visitor) visitor.visit_break_expr(self) end |