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

SingletonCaching1() public method

public SingletonCaching1 ( ) : void
return void
        public void SingletonCaching1() {
            AssertOutput(delegate() {
                CompilerTest(@"
class C  
  def foo
    puts 'foo'
  end
end

c = C.new
c.foo

class << c
  def foo
    puts 'bar'
  end
end
c.foo
");
            }, @"
foo
bar");
        }
Tests