Class: Array

Inherits:
Object show all
Defined in:
lib/cards/extensions.rb

Instance Method Summary collapse

Instance Method Details

#heightsObject



29
30
31
# File 'lib/cards/extensions.rb', line 29

def heights
  map {|c| c.height}
end

#widthsObject



25
26
27
# File 'lib/cards/extensions.rb', line 25

def widths
  map {|c| c.width}
end