Class: Epuber::Size
- Inherits:
-
Object
- Object
- Epuber::Size
- Defined in:
- lib/epuber/vendor/size.rb
Instance Attribute Summary collapse
- #height ⇒ Numeric readonly
- #width ⇒ Numeric readonly
Instance Method Summary collapse
-
#initialize(width, height) ⇒ Size
constructor
A new instance of Size.
Constructor Details
#initialize(width, height) ⇒ Size
Returns a new instance of Size.
16 17 18 19 |
# File 'lib/epuber/vendor/size.rb', line 16 def initialize(width, height) @width = width @height = height end |
Instance Attribute Details
#height ⇒ Numeric (readonly)
11 12 13 |
# File 'lib/epuber/vendor/size.rb', line 11 def height @height end |
#width ⇒ Numeric (readonly)
7 8 9 |
# File 'lib/epuber/vendor/size.rb', line 7 def width @width end |