class Hyalite::DOM::Window
Public Class Methods
singleton()
click to toggle source
# File lib/hyalite/dom/window.rb, line 24 def self.singleton @singleton ||= self.new(`window`) end
Public Instance Methods
height()
click to toggle source
# File lib/hyalite/dom/window.rb, line 20 def height `#@native.innerHeight` end
location()
click to toggle source
# File lib/hyalite/dom/window.rb, line 8 def location Native(`#@native.location`) end
location=(loc)
click to toggle source
# File lib/hyalite/dom/window.rb, line 12 def location=(loc) Native(`#@native.location=loc`) end
width()
click to toggle source
# File lib/hyalite/dom/window.rb, line 16 def width `#@native.innerWidth` end