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

Constants3() public method

Class/module def makes name of the constant by appending its simple name to the name of the lexically containing class/module.
public Constants3 ( ) : void
return void
        public void Constants3() {
            AssertOutput(delegate() {
                CompilerTest(@"
class B
  class D
    puts self
  end
end

module M
  class D
    puts self
  end
end

class C < B
  include M

  class D
    puts self    
  end
end
");
            }, @"
B::D
M::D
C::D
");
        }
Tests