Sha256: b2bea12a2e19ed6123c445631eeb3b228557b37b012116755dc0e0f094c87a95

Contents?: true

Size: 225 Bytes

Versions: 1

Compression:

Stored size: 225 Bytes

Contents

module Browser; class Window

class View
  def initialize(window)
    @window = window
    @native = window.to_n
  end

  def width
    `#@native.innerWidth`
  end

  def height
    `#@native.innerHeight`
  end
end

end; end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-browser-0.1.0.beta1 opal/browser/window/view.rb