Class: Space::Screen
- Inherits:
-
Object
- Object
- Space::Screen
- Defined in:
- lib/space/screen.rb,
lib/space/screen/view.rb,
lib/space/screen/progress.rb,
lib/space/screen/dashboard.rb
Defined Under Namespace
Classes: Dashboard, Progress, View
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
- #display(name) ⇒ Object
-
#initialize(project) ⇒ Screen
constructor
A new instance of Screen.
- #notify(event) ⇒ Object
- #render ⇒ Object
Constructor Details
#initialize(project) ⇒ Screen
Returns a new instance of Screen.
9 10 11 |
# File 'lib/space/screen.rb', line 9 def initialize(project) @project = project end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
7 8 9 |
# File 'lib/space/screen.rb', line 7 def project @project end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
7 8 9 |
# File 'lib/space/screen.rb', line 7 def view @view end |
Instance Method Details
#display(name) ⇒ Object
13 14 15 16 |
# File 'lib/space/screen.rb', line 13 def display(name) @view = create(name) render end |
#notify(event) ⇒ Object
22 23 24 |
# File 'lib/space/screen.rb', line 22 def notify(event) view.notify(event) end |
#render ⇒ Object
18 19 20 |
# File 'lib/space/screen.rb', line 18 def render view.render end |