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

RubyBlocks18() public method

public RubyBlocks18 ( ) : void
return void
        public void RubyBlocks18() {
            TestOutput(@"
class C
  def y
    yield
  end 

  def foo
    y { p self.class }
  end
end

C.new.foo
", @"
C
");
        }
Tests