lib/piste_pal/day_pass.rb
# convert meters to km / miles
convert meters to km / miles
convert meters to km / miles
def distance(system = "imperial")
      if system == "metric"
        value = @distance / 1000
        unit = "kilometers"
      elsif system == "imperial"
        value = @distance / 1609.344
        unit = "miles"
      end
      { :value => value, :unit => unit }
    end
def distance ( system = "imperial" ) if system == "metric" value = @distance / 1000 unit = "kilometers" elsif system == "imperial" value = @distance / 1609.344 unit = "miles" end { :value => value , :unit => unit } end
convert meters to km / miles
convert meters to km / miles
system