Thor::Task
A dynamic task that handles method missing scenarios.
# File lib/thor/task.rb, line 102 def initialize(name, options=nil) super(name.to_s, "A dynamically-generated task", name.to_s, name.to_s, options) end
# File lib/thor/task.rb, line 106 def run(instance, args=[]) if (instance.methods & [name.to_s, name.to_sym]).empty? super else instance.class.handle_no_task_error(name) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.