Class: Epuber::Size

Inherits:
Object
  • Object
show all
Defined in:
lib/epuber/vendor/size.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width, height) ⇒ Size

Returns a new instance of Size.

Parameters:

  • width (Numeric)
  • height (Numeric)


16
17
18
19
# File 'lib/epuber/vendor/size.rb', line 16

def initialize(width, height)
  @width = width
  @height = height
end

Instance Attribute Details

#heightNumeric (readonly)

Returns:

  • (Numeric)


11
12
13
# File 'lib/epuber/vendor/size.rb', line 11

def height
  @height
end

#widthNumeric (readonly)

Returns:

  • (Numeric)


7
8
9
# File 'lib/epuber/vendor/size.rb', line 7

def width
  @width
end