Parent

Methods

Class Index [+]

Quicksearch

Thor::DynamicTask

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:     def initialize(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:     def run(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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.