Class: Deadweight::RakeTask
- Inherits:
-
Object
- Object
- Deadweight::RakeTask
- Includes:
- Rake::DSL
- Defined in:
- lib/deadweight/rake_task.rb
Instance Method Summary collapse
-
#initialize(output = STDOUT, &block) ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(output = STDOUT, &block) ⇒ RakeTask
Returns a new instance of RakeTask.
5 6 7 8 9 10 11 |
# File 'lib/deadweight/rake_task.rb', line 5 def initialize output=STDOUT, &block desc "run deadweight" task :deadweight do dw = Deadweight.new(&block) dw.dump(output) end end |