Class: Melbourne::AST::Next

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

Overview

A next statement as in:

while true do
  next if skip?(i)
  i += 1
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, value) ⇒ Next

Returns a new instance of Next.



316
317
318
319
# File 'lib/melbourne/ast/control_flow.rb', line 316

def initialize(line, value)
  @line = line
  @value = value
end