Class: Browser::Size

Inherits:
Struct show all
Defined in:
opal/browser/utils.rb

Instance Attribute Summary collapse

Instance Attribute Details

#height ⇒ Object

Returns the value of attribute height

Returns:

  • (Object) —

    the current value of height



5
6
7
# File 'opal/browser/utils.rb', line 5

def height
  @height
end

#width ⇒ Object

Returns the value of attribute width

Returns:

  • (Object) —

    the current value of width



5
6
7
# File 'opal/browser/utils.rb', line 5

def width
  @width
end