Class: Soundcloud9000::Controllers::Controller
- Inherits:
-
Object
- Object
- Soundcloud9000::Controllers::Controller
- Defined in:
- lib/soundcloud9000/controllers/controller.rb
Overview
control our view, events, and rendering
Direct Known Subclasses
Instance Attribute Summary collapse
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
-
#initialize(view) ⇒ Controller
constructor
A new instance of Controller.
- #render ⇒ Object
Constructor Details
#initialize(view) ⇒ Controller
Returns a new instance of Controller.
9 10 11 12 |
# File 'lib/soundcloud9000/controllers/controller.rb', line 9 def initialize(view) @view = view @events = Events.new end |
Instance Attribute Details
#events ⇒ Object (readonly)
Returns the value of attribute events.
7 8 9 |
# File 'lib/soundcloud9000/controllers/controller.rb', line 7 def events @events end |
Instance Method Details
#render ⇒ Object
14 15 16 |
# File 'lib/soundcloud9000/controllers/controller.rb', line 14 def render @view.render end |