class Thor::DynamicTask
A dynamic command that handles method missing scenarios.
Public Class Methods
Calls superclass method
Thor::Command::new
# File lib/thor/command.rb, line 138 def initialize(name, options = nil) super(name.to_s, "A dynamically-generated command", name.to_s, nil, name.to_s, options) end
Public Instance Methods
Calls superclass method
Thor::Command#run
# File lib/thor/command.rb, line 142 def run(instance, args = []) if (instance.methods & [name.to_s, name.to_sym]).empty? super else instance.class.handle_no_command_error(name) end end