Class: TaskWarrior::Dependencies::ProjectPresenter
- Defined in:
- lib/twdeps/project_presenter.rb
Overview
Presents a project’s attributes suitable for a GraphViz cluster
Instance Attribute Summary
Attributes inherited from Presenter
Instance Method Summary collapse
-
#initialize(project) ⇒ ProjectPresenter
constructor
A new instance of ProjectPresenter.
Constructor Details
#initialize(project) ⇒ ProjectPresenter
Returns a new instance of ProjectPresenter.
7 8 9 10 |
# File 'lib/twdeps/project_presenter.rb', line 7 def initialize(project) self.id = "cluster_#{project.name}" self.attributes = {:label => project.name} end |