lib/method_found/interceptor.rb in method_found-0.1.0 vs lib/method_found/interceptor.rb in method_found-0.1.1
- old
+ new
@@ -10,8 +10,14 @@
end
define_method :respond_to_missing? do |method_name, include_private = false|
(method_name =~ regex) || super(method_name, include_private)
end
+
+ define_method :inspect do
+ klass = self.class
+ name = klass.name || klass.inspect
+ "#<#{name}: #{regex.inspect}>"
+ end
end
end
end