lib/shaddox/task.rb in shaddox-0.0.30 vs lib/shaddox/task.rb in shaddox-0.1.0
- old
+ new
@@ -1,18 +1,10 @@
module Shaddox
class Task
- attr_accessor :block, :deps
+ attr_accessor :block, :deps, :done
def initialize(block, deps)
@block = block
@deps = [deps].flatten
- end
-
- def to_source
- require 'sourcify'
- if @block
- @block.to_source(:strip_enclosure => true)
- else
- "# Empty block #"
- end
+ @done = false
end
end
end