Class: Space::View
- Inherits:
-
Object
- Object
- Space::View
- Defined in:
- lib/space/view.rb,
lib/space/view/helpers.rb,
lib/space/view/progress.rb,
lib/space/view/template.rb,
lib/space/view/dashboard.rb
Defined Under Namespace
Modules: Helpers Classes: Dashboard, Progress, Template
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(project) ⇒ View
constructor
A new instance of View.
- #notify(event) ⇒ Object
Constructor Details
#initialize(project) ⇒ View
Returns a new instance of View.
12 13 14 |
# File 'lib/space/view.rb', line 12 def initialize(project) @project = project end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
10 11 12 |
# File 'lib/space/view.rb', line 10 def project @project end |
Instance Method Details
#notify(event) ⇒ Object
16 17 18 |
# File 'lib/space/view.rb', line 16 def notify(event) send(:"on_#{event}") end |