Class: Sprout::ToolTaskModel

Inherits:
Rake::FileTask
  • Object
show all
Includes:
DynamicAccessors
Defined in:
lib/sprout/tool_task_model.rb

Class Method Summary collapse

Methods included from DynamicAccessors

#each_attribute, #initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class DynamicAccessors

Class Method Details

.define_task(args) {|t| ... } ⇒ Object

Yields:

  • (t)


7
8
9
10
# File 'lib/sprout/tool_task_model.rb', line 7

def self.define_task(args, &block)
  t = super
  yield t if block_given?
end