Class: GtkApp::Controller
- Inherits:
-
Object
- Object
- GtkApp::Controller
- Includes:
- Helpers, SignalSupport
- Defined in:
- lib/gtk_app/controller.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Controller
constructor
A new instance of Controller.
- #quit(with_validations = true) ⇒ Object
Methods included from SignalSupport
Methods included from Helpers
Constructor Details
#initialize(&block) ⇒ Controller
Returns a new instance of Controller.
8 9 10 11 12 |
# File 'lib/gtk_app/controller.rb', line 8 def initialize(&block) instance_eval(&block) if block_given? establish_signal_connections end |
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model.
6 7 8 |
# File 'lib/gtk_app/controller.rb', line 6 def model @model end |
#view ⇒ Object
Returns the value of attribute view.
6 7 8 |
# File 'lib/gtk_app/controller.rb', line 6 def view @view end |