Method: M26::Distance#get_miles
- Defined in:
- lib/m26_distance.rb
#get_miles ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/m26_distance.rb', line 22 def get_miles case @uom when UOM_MILES return @value when UOM_KILOMETERS return @value / KILOMETERS_PER_MILE when UOM_YARDS return @value / YARDS_PER_MILE end end |