Class: UberDoc::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/uberdoc/task.rb

Direct Known Subclasses

DoctorTask, DoxygenTask, Generate

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Task

Returns a new instance of Task.



8
9
10
# File 'lib/uberdoc/task.rb', line 8

def initialize(options)
    @options = options
end

Class Method Details

.known_tasksObject

perform



26
27
28
# File 'lib/uberdoc/task.rb', line 26

def self.known_tasks
    ObjectSpace.each_object(Class).select { |klass| klass < self }
end

.should_run?(options) ⇒ Boolean

Indicates if this task needs to run based on the options

Returns:

  • (Boolean)


15
16
17
# File 'lib/uberdoc/task.rb', line 15

def self.should_run?(options)
    true
end

Instance Method Details

#performObject

Performs the task



22
23
24
# File 'lib/uberdoc/task.rb', line 22

def perform
    puts "Subclass Responsibility"
end