Class: Melbourne::AST::Retry

Inherits:
Break show all
Defined in:
lib/melbourne/ast/control_flow.rb

Overview

A redo statement as in:

while true do
  begin
    x
  rescue Exception => x
    try_to_fix()
    retry
  end
end

Instance Attribute Summary

Attributes inherited from Break

#value

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line) ⇒ Retry



354
355
356
# File 'lib/melbourne/ast/control_flow.rb', line 354

def initialize(line)
  @line = line
end