Class: Context::PageView
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from View
Instance Method Summary collapse
-
#close ⇒ Object
The page view is meant to be the main view for a context (in Gtk it’s a window).
-
#initialize(context) ⇒ PageView
constructor
A new instance of PageView.
Methods inherited from View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ PageView
Returns a new instance of PageView.
6 7 8 |
# File 'lib/Context/Views/PageView.rb', line 6 def initialize(context) super(context) end |
Instance Method Details
#close ⇒ Object
The page view is meant to be the main view for a context (in Gtk it’s a window). So if the view closes, it should close the context. Actually, I’m not sure if I like this idea. It might change.
14 15 16 |
# File 'lib/Context/Views/PageView.rb', line 14 def close @context.close end |