Class: GtkApp::Controller
- Inherits:
-
Object
- Object
- GtkApp::Controller
- Includes:
- Helpers, SignalSupport
- Defined in:
- lib/gtk_app/controller.rb
Instance Attribute Summary collapse
- #model ⇒ Object
-
#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.
11 12 13 14 15 |
# File 'lib/gtk_app/controller.rb', line 11 def initialize(&block) instance_eval(&block) if block_given? establish_signal_connections end |
Instance Attribute Details
#model ⇒ Object
7 8 9 |
# File 'lib/gtk_app/controller.rb', line 7 def model @model end |
#view ⇒ Object
Returns the value of attribute view.
9 10 11 |
# File 'lib/gtk_app/controller.rb', line 9 def view @view end |