A dynamic task that handles method missing scenarios.
Public Class Methods
new(name, options=nil)click to toggle source
# File lib/bundler/vendor/thor/task.rb, line 102
102: definitialize(name, options=nil)
103: super(name.to_s, "A dynamically-generated task", name.to_s, name.to_s, options)
104: end
Public Instance Methods
run(instance, args=[])click to toggle source
# File lib/bundler/vendor/thor/task.rb, line 106
106: defrun(instance, args=[])
107: if (instance.methods & [name.to_s, name.to_sym]).empty?
108: super
109: else
110: instance.class.handle_no_task_error(name)
111: end
112: end