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 101
101: definitialize(name, options=nil)
102: super(name.to_s, "A dynamically-generated task", name.to_s, name.to_s, options)
103: end
Public Instance Methods
run(instance, args=[])click to toggle source
# File lib/bundler/vendor/thor/task.rb, line 105
105: defrun(instance, args=[])
106: if (instance.methods & [name.to_s, name.to_sym]).empty?
107: super
108: else
109: instance.class.handle_no_task_error(name)
110: end
111: end