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.
I had thought about this - will do.

*Jeremy Finzel*

*Senior Database Developer*
*M* 630-777-4520




On Tue, Dec 16, 2014 at 8:14 PM, Joseph Mastey <notifications@github.com>
wrote:
>
> In dino_catalog/dinosaur.rb
> <https://github.com/jmmastey/level_up_exercises/pull/350#discussion-diff-21948738>
> :
>
> > +  end
> > +
> > +  def print_dinosaur_info
> > +    instance_variables.each do |attr_name|
> > +      attr_value = instance_variable_get attr_name
> > +      unless attr_value.nil?
> > +        puts "#{attr_name.to_s.sub('@', '').titleize}: #{attr_value}"
> > +      end
> > +    end
> > +  end
> > +
> > +  private
> > +
> > +  def carnivores
> > +    %w(Carnivore Insectivore Piscivore)
> > +  end
>
> This is a constant, honestly. Just make it a constant.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jmmastey/level_up_exercises/pull/350/files#r21948738>.
>