In Files

Parent

Methods

Thor::Task::Dynamic

A dynamic task that handles method missing scenarios.

Public Class Methods

new(name) click to toggle source

(Not documented)

   # File lib/thor/task.rb, line 7
7:       def initialize(name)
8:         super(name.to_s, "A dynamically-generated task", name.to_s)
9:       end

Public Instance Methods

run(instance, args=[]) click to toggle source

(Not documented)

    # File lib/thor/task.rb, line 11
11:       def run(instance, args=[])
12:         unless (instance.methods & [name.to_s, name.to_sym]).empty?
13:           raise Error, "could not find Thor class or task '#{name}'"
14:         end
15:         super
16:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.