First Dino Dex Program

I have it set up right now to just run the code in the Main class, and it prints the results to the console.
Oops: error "can't modify frozen String (RuntimeError)"

*Jeremy Finzel*

*Senior Database Developer*
*M* 630-777-4520




On Wed, Dec 17, 2014 at 9:58 AM, Finzel, Jeremy <jfinzel@enova.com> wrote:
>
> I got this error on key.downcase!
>
> *Jeremy Finzel*
>
> *Senior Database Developer*
> *M* 630-777-4520
>
>
>
>
> On Tue, Dec 16, 2014 at 8:24 PM, Joseph Mastey <notifications@github.com>
> wrote:
>>
>> In dino_catalog/dinosaur_import.rb
>> <https://github.com/jmmastey/level_up_exercises/pull/350#discussion-diff-21949015>
>> :
>>
>> > +    hash.each_pair do |key, value|
>> > +      key_converted = self.class.convert_import_keys(key)
>> > +      value_converted = self.class.convert_import_values(key_converted, value)
>> > +      hash_converted.merge!(key_converted => value_converted)
>> > +    end
>> > +    hash_converted
>> > +  end
>> > +
>> > +  def self.convert_import_keys(key)
>> > +    key_converted = key.downcase
>> > +    if autoconvert_keys.key?(key_converted)
>> > +      autoconvert_keys[key_converted]
>> > +    else
>> > +      key_converted
>> > +    end
>> > +  end
>>
>> def convert_import_key(key)
>>   key.downcase!
>>   autoconvert_keys.fetch(key, key)
>> end
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/jmmastey/level_up_exercises/pull/350/files#r21949015>
>> .
>>
>