Method: M26::Distance#get_yards
- Defined in:
- lib/m26_distance.rb
#get_yards ⇒ Object
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/m26_distance.rb', line 44 def get_yards case @uom when UOM_MILES return @value * YARDS_PER_MILE when UOM_KILOMETERS return (@value * MILES_PER_KILOMETER) * YARDS_PER_MILE when UOM_YARDS return @value end end |