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

RubyBlocks11() public method

Return with stack unwinding.
public RubyBlocks11 ( ) : void
return void
        public void RubyBlocks11() {
            TestOutputWithEval(@"
def foo
    puts 'begin'
    1.times {
        1.times {
            puts 'block'
            #<return 'result'#>
        }
    }
    puts 'end'
ensure
    puts 'ensure'
end

puts foo
",@"
begin
block
ensure
result
");
        }
Tests