Class: Estreet::BreakStatement
- Defined in:
- lib/estreet/break_statement.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(label = nil, loc = nil) ⇒ BreakStatement
constructor
A new instance of BreakStatement.
Methods inherited from Statement
Methods inherited from Node
Constructor Details
#initialize(label = nil, loc = nil) ⇒ BreakStatement
Returns a new instance of BreakStatement.
3 4 5 6 |
# File 'lib/estreet/break_statement.rb', line 3 def initialize(label=nil, loc=nil) super(loc) @label = Identifier.new(label) if label end |
Instance Method Details
#attributes ⇒ Object
8 9 10 |
# File 'lib/estreet/break_statement.rb', line 8 def attributes super.merge(label: @label) end |