Class: HotCocoaController

Inherits:
Object show all
Defined in:
lib/hotcocoa/mvc.rb

Direct Known Subclasses

HotCocoaApplicationController

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application) ⇒ HotCocoaController

Returns a new instance of HotCocoaController.



86
87
88
# File 'lib/hotcocoa/mvc.rb', line 86

def initialize application
  @application = application
end

Class Attribute Details

.view_instancesObject (readonly)

Returns the value of attribute view_instances.



80
81
82
# File 'lib/hotcocoa/mvc.rb', line 80

def view_instances
  @view_instances
end

Instance Attribute Details

#applicationObject (readonly)

Returns the value of attribute application.



84
85
86
# File 'lib/hotcocoa/mvc.rb', line 84

def application
  @application
end

Instance Method Details

#application_windowObject



90
91
92
# File 'lib/hotcocoa/mvc.rb', line 90

def application_window
  @application.application_controller.application_window
end