Class: Wireframe::Math

Inherits:
Object
  • Object
show all
Defined in:
lib/wireframe/math.rb

Instance Method Summary collapse

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

#heightObject



7
8
9
# File 'lib/wireframe/math.rb', line 7

def height
  match[2].to_i
end

#widthObject



11
12
13
# File 'lib/wireframe/math.rb', line 11

def width
  match[1].to_i
end