Class: Browser::Size

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

Instance Attribute Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height



2
3
4
# File 'lib/diamonds/opal/browser/utils.rb', line 2

def height
  @height
end

#widthObject

Returns the value of attribute width



2
3
4
# File 'lib/diamonds/opal/browser/utils.rb', line 2

def width
  @width
end