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.
That makes perfect sense, thank you.

*Jeremy Finzel*

*Senior Database Developer*
*M* 630-777-4520




On Tue, Dec 16, 2014 at 8:16 PM, Joseph Mastey <notifications@github.com>
wrote:
>
> In dino_catalog/dinosaur.rb
> <https://github.com/jmmastey/level_up_exercises/pull/350#discussion-diff-21948807>
> :
>
> > @@ -0,0 +1,45 @@
> > +require 'active_support/all'
> > +
> > +class Dinosaur
> > +  attr_accessor :name, :period, :continent, :diet, :walking, :description
> > +  attr_reader :weight_in_lbs
>
> It's actually possible to make this attr_accessor and just override the
> weight_in_lbs= method. It may seem like wasted work, but the use of
> attr_reader here appears to imply a domain rule (weight isn't settable)
> that isn't true. It's not a big issue, but it is definitely better to make
> it an accessor.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jmmastey/level_up_exercises/pull/350/files#r21948807>.
>