Class: TaskWarrior::Dependencies::Presenter
- Inherits:
-
Object
- Object
- TaskWarrior::Dependencies::Presenter
- Defined in:
- lib/twdeps/presenter.rb
Overview
Presents a thing to the graph
Direct Known Subclasses
Instance Attribute Summary collapse
- #attributes ⇒ Object readonly
- #id ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(id) ⇒ Presenter
constructor
A new instance of Presenter.
Constructor Details
#initialize(id) ⇒ Presenter
Returns a new instance of Presenter.
7 8 9 10 |
# File 'lib/twdeps/presenter.rb', line 7 def initialize(id) @id = id @attributes = {:label => id, :labelloc => 'top'} end |
Instance Attribute Details
#attributes ⇒ Object
12 13 14 |
# File 'lib/twdeps/presenter.rb', line 12 def attributes @attributes end |
#id ⇒ Object
16 17 18 |
# File 'lib/twdeps/presenter.rb', line 16 def id @id end |