IronRuby.Tests.Tests.RubyBlocks8 C# (CSharp) Method

RubyBlocks8() public method

Redo in a block.
public RubyBlocks8 ( ) : void
return void
        public void RubyBlocks8() {
            AssertOutput(delegate() {
                CompilerTest(@"
i = 0
x = 2.times { |x|
  puts x
  i = i + 1
  if i < 3 then redo end
}
puts x
");
            }, @"
0
0
0
1
2
");
        }
Tests