Class: Rjq::AST::Break
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Attributes inherited from Node
Instance Method Summary collapse
- #eval(_input, _context) ⇒ Object
-
#initialize(label) ⇒ Break
constructor
A new instance of Break.
Methods inherited from Node
#assign_value, #invalid_path_message, #paths, #take, #with_source_span
Constructor Details
#initialize(label) ⇒ Break
Returns a new instance of Break.
775 776 777 |
# File 'lib/rjq/ast.rb', line 775 def initialize(label) @label = label end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
773 774 775 |
# File 'lib/rjq/ast.rb', line 773 def label @label end |
Instance Method Details
#eval(_input, _context) ⇒ Object
779 780 781 |
# File 'lib/rjq/ast.rb', line 779 def eval(_input, _context) raise BreakSignal, @label end |