Class: Browser::Window
- Includes:
- Native
- Defined in:
- lib/wedge/plugins/history.rb,
lib/wedge/plugins/location.rb
Overview
Window instances are Native objects used to wrap native window instances.
Generally, you will want to use the top level Window instance, which wraps ‘window` from the main page.
Instance Attribute Summary collapse
-
#history ⇒ History
readonly
The history for this window.
-
#location ⇒ Location
readonly
The location for the window.
Instance Attribute Details
#history ⇒ History (readonly)
Returns the history for this window.
22 23 24 |
# File 'lib/wedge/plugins/history.rb', line 22 def history History.new(`#@native.history`) if `#@native.history` end |
#location ⇒ Location (readonly)
Returns the location for the window.
74 75 76 |
# File 'lib/wedge/plugins/location.rb', line 74 def location Location.new(`#@native.location`) if `#@native.location` end |