Class: Druzy::MVC::ControllerWithResult
- Inherits:
-
Controller
- Object
- Controller
- Druzy::MVC::ControllerWithResult
- Defined in:
- lib/druzy/mvc/mvc_with_result.rb
Instance Attribute Summary
Attributes inherited from Controller
Instance Method Summary collapse
-
#initialize(model) ⇒ ControllerWithResult
constructor
A new instance of ControllerWithResult.
- #result ⇒ Object
Methods inherited from Controller
#add_view, #close_views, #display_views, #notify_action, #remove_view, #views_on_top
Constructor Details
#initialize(model) ⇒ ControllerWithResult
Returns a new instance of ControllerWithResult.
8 9 10 |
# File 'lib/druzy/mvc/mvc_with_result.rb', line 8 def initialize(model) super(model) end |
Instance Method Details
#result ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/druzy/mvc/mvc_with_result.rb', line 12 def result if @model.result == nil @model.stopped_thread=Thread.current Thread.stop end return @model.result end |