Skip to content

Commit

Permalink
Removed Command#method_missing
Browse files Browse the repository at this point in the history
  • Loading branch information
blambeau committed Aug 5, 2011
1 parent e941026 commit b342dd4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/quickl/command/instance_methods.rb
Expand Up @@ -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
Expand Down

0 comments on commit b342dd4

Please sign in to comment.