lib/farecalculator.rb
# Yuck, I don't like this but it's quicker
Yuck, I don't like this but it's quicker
Yuck I don ' t like this but it ' s quicker
def minimum_fare_to_str()
      string_output = "Zone Minimum\n------------\n"
      @minimumFareForZone.keys.sort.each do |key|
        string_output += sprintf("%4d %6d\n", key, @minimumFareForZone[key])
      end
      string_output
    end
def minimum_fare_to_str ( ) string_output = "Zone Minimum\n------------\n" @minimumFareForZone . keys . sort . each do | key | string_output += sprintf ( "%4d %6d\n" , key , @minimumFareForZone [ key ] ) end string_output end
Yuck, I don't like this but it's quicker
Yuck I don ' t like this but it ' s quicker