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

RubyProcs2() public method

Assigning to a block parameter should not affect yield.
public RubyProcs2 ( ) : void
return void
        public void RubyProcs2() {
            TestOutput(@"
def foo(&b)
  b = nil
  yield
end

foo { puts 'foo' }
", @"
foo
");
        }
Tests