Class: Browser::Window
- Inherits:
-
Object
- Object
- Browser::Window
- Includes:
- Native
- Defined in:
- lib/roda/component/history.rb,
lib/roda/component/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.
13 14 15 |
# File 'lib/roda/component/history.rb', line 13 def history History.new(`#@native.history`) if `#@native.history` end |
#location ⇒ Location (readonly)
Returns the location for the window.
74 75 76 |
# File 'lib/roda/component/location.rb', line 74 def location Location.new(`#@native.location`) if `#@native.location` end |