Class: Melbourne::AST::Redo

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
    redo
  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) ⇒ Redo

Returns a new instance of Redo.



335
336
337
# File 'lib/melbourne/ast/control_flow.rb', line 335

def initialize(line)
  @line = line
end