Class: Space::View
- Inherits:
-
Object
- Object
- Space::View
- Includes:
- Helpers
- 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
Methods included from Helpers
#bundle_deps, #bundle_info, #bundle_status, #format_boolean, #git_ahead, #git_status, #i, #project_title, #repo_local, #repo_local?, #repo_name, #repo_selected?, #repo_status, #tableize
Constructor Details
#initialize(project) ⇒ View
Returns a new instance of View.
13 14 15 |
# File 'lib/space/view.rb', line 13 def initialize(project) @project = project end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
11 12 13 |
# File 'lib/space/view.rb', line 11 def project @project end |
Instance Method Details
#notify(event) ⇒ Object
17 18 19 |
# File 'lib/space/view.rb', line 17 def notify(event) send(:"on_#{event}") end |