1 require File.join(File.dirname(__FILE__), *%w[.. lib god])
9 class ExitCalledError < StandardError
14 raise ExitCalledError.new("exit called")
18 class FakeCondition < Condition
27 # This allows you to be a good OOP citizen and honor encapsulation, but
28 # still make calls to private methods (for testing) by doing
30 # obj.bypass.private_thingie(arg1, arg2)
32 # Which is easier on the eye than
34 # obj.send(:private_thingie, arg1, arg2)
38 instance_methods.each do |m|
39 undef_method m unless m =~ /^__/
46 def method_missing(sym, *args)
47 @ref.__send__(sym, *args)