public Method

Task.enhance(deps=nil, &block)

Enhance a task with prerequisites or actions. Returns self.

Source Code

# File rake.rb, line 461
def enhance(deps=nil, &block)
  @prerequisites |= deps if deps
  @actions << block if block_given?
  self
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.