project_model.rb

Path: sprout/lib/sprout/project_model.rb
Last Update: Fri Aug 07 21:52:02 -0700 2009

Methods

Public Instance methods

Helper method to expose the project model as a Rake Task

[Source]

# File sprout/lib/sprout/project_model.rb, line 261
def project_model(task_name)
  model = Sprout::ProjectModel.new
  yield model if block_given?

  t = task task_name

  def t.project_model=(model)
    @model = model
  end

  def t.project_model
    return @model
  end
    
  t.project_model = model
  return model
end

[Validate]