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.
5 6 7 |
# File 'lib/Context/Views/PageView.rb', line 5 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.
13 14 15 |
# File 'lib/Context/Views/PageView.rb', line 13 def close @context.close end |