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

RubyBlocks3() public method

public RubyBlocks3 ( ) : void
return void
        public void RubyBlocks3() {
            AssertOutput(delegate() {
                CompilerTest(@"
class C
  def foo
    puts 'X',yield(1,2,3)
  end
end

C.new.foo { |a,b,c| puts a,b,c; 'foo' }
");
            }, @"
1
2
3
X
foo
");
        }
Tests