Class: Wireframe::Math
- Inherits:
-
Object
- Object
- Wireframe::Math
- Defined in:
- lib/wireframe/math.rb
Instance Method Summary collapse
- #height ⇒ Object
-
#initialize(coordinates) ⇒ Math
constructor
A new instance of Math.
- #width ⇒ Object
Constructor Details
#initialize(coordinates) ⇒ Math
Returns a new instance of Math.
3 4 5 |
# File 'lib/wireframe/math.rb', line 3 def initialize(coordinates) @coordinates = coordinates end |
Instance Method Details
#height ⇒ Object
7 8 9 |
# File 'lib/wireframe/math.rb', line 7 def height match[2].to_i end |
#width ⇒ Object
11 12 13 |
# File 'lib/wireframe/math.rb', line 11 def width match[1].to_i end |