From: Paul Pladijs Date: 2001-03-16T00:08:18+09:00 Subject: [ruby-talk:12687] DBC problem First, thanks to the Andy for developing the Design By Contract features in Ruby. Often when I'm designing classes I try to think in terms of invariants, pre- and postconditions. Great tool! But the following code doesn't work properly: require 'dbc' class Outer class Inner def a_method end end end When executing I got the following message: (eval):2:in `method_added': uninitialized constant Outer::Inner::Inner (NameError) from dbc_test.rb:7 The message only occurs when defining a method in the class Inner. Could somebody help me please? Regards, Paul.