From b342dd4fa0de7c72e11f1ca83d7b582e17ae7735 Mon Sep 17 00:00:00 2001 From: Bernard Lambeau Date: Fri, 5 Aug 2011 20:52:07 +0200 Subject: [PATCH] Removed Command#method_missing --- lib/quickl/command/instance_methods.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/quickl/command/instance_methods.rb b/lib/quickl/command/instance_methods.rb index e625f11..cc42f22 100644 --- a/lib/quickl/command/instance_methods.rb +++ b/lib/quickl/command/instance_methods.rb @@ -5,17 +5,6 @@ module InstanceMethods # Who is requesting command execution? attr_reader :requester - - # Delegate unrecognized calls to the command class - # (gives access to options, help, usage, ...) - def method_missing(name, *args, &block) - if self.class.respond_to?(name) - Quickl.deprecated(name, "self.class.#{name}", caller) - self.class.send(name, *args, &block) - else - super - end - end end # module InstanceMethods end # class Command