Class: Distil::Task

Inherits:
Configurable show all
Defined in:
lib/distil/task.rb

Constant Summary collapse

@@tasks =
[]

Instance Attribute Summary

Attributes inherited from Configurable

#options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Configurable

#get_option, #get_options, option

Constructor Details

#initialize(options, target) ⇒ Task

Returns a new instance of Task.



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

def initialize(options, target)
  @target= target
  super(options, target)
end

Class Method Details

.inherited(subclass) ⇒ Object



21
22
23
# File 'lib/distil/task.rb', line 21

def self.inherited(subclass)
  @@tasks << subclass
end

.tasksObject



25
26
27
# File 'lib/distil/task.rb', line 25

def self.tasks
  @@tasks
end

Instance Method Details

#find_filesObject



33
34
35
# File 'lib/distil/task.rb', line 33

def find_files
  []
end

#handles_file?(file) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/distil/task.rb', line 29

def handles_file?(file)
  false
end

#include_file(file) ⇒ Object



37
38
# File 'lib/distil/task.rb', line 37

def include_file(file)
end

#process_files(files) ⇒ Object



40
41
# File 'lib/distil/task.rb', line 40

def process_files(files)
end

#projectObject



12
13
14
# File 'lib/distil/task.rb', line 12

def project
  target.project
end

#targetObject



16
17
18
# File 'lib/distil/task.rb', line 16

def target
  @target
end