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.