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

RubyBlocks5() public method

public RubyBlocks5 ( ) : void
return void
        public void RubyBlocks5() {
            AssertOutput(delegate() {
                CompilerTest(@"
class C
  def foo 
    puts block_given?
  end
end

C.new.foo { puts 'goo' }
C.new.foo
            ");
            }, @"
true
false
            ");
        }
Tests