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

RubyProcs1() public method

public RubyProcs1 ( ) : void
return void
        public void RubyProcs1() {
            AssertOutput(delegate() {
                CompilerTest(@"
def foo x,y,&f
  yield x,y
  f[3,4]
end

foo(1,2) do |a,b|
  puts a,b
end
");
            }, @"
1
2
3
4
");
        }
Tests