Class: Druzy::MVC::ControllerWithResult

Inherits:
Controller
  • Object
show all
Defined in:
lib/druzy/mvc/mvc_with_result.rb

Instance Attribute Summary

Attributes inherited from Controller

#model, #views

Instance Method Summary collapse

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

#resultObject



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