A dynamic command that handles method missing scenarios.
Public Class Methods
new(name, options=nil)click to toggle source
# File lib/thor/command.rb, line 122definitialize(name, options=nil)
super(name.to_s, "A dynamically-generated command", name.to_s, name.to_s, options)
end
Public Instance Methods
run(instance, args=[])click to toggle source
# File lib/thor/command.rb, line 126defrun(instance, args=[])
if (instance.methods & [name.to_s, name.to_sym]).empty?superelseinstance.class.handle_no_command_error(name)
endend