Class: Browser::Window

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#historyHistory (readonly)

Returns the history for this window.

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

#locationLocation (readonly)

Returns the location for the window.

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