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.
Thank you, that's very helpful.

*Jeremy Finzel*

*Senior Database Developer*
*M* 630-777-4520




On Tue, Dec 16, 2014 at 8:27 PM, Joseph Mastey <notifications@github.com>
wrote:
>
> In dino_catalog/dinosaur_info.rb
> <https://github.com/jmmastey/level_up_exercises/pull/350#discussion-diff-21949109>
> :
>
> > +    end
> > +    @dinosaurs_filtered
> > +  end
> > +
> > +  def print_dinosaurs_info(include_filter = false)
> > +    if include_filter
> > +      dinosaurs = @dinosaurs_filtered
> > +      title = "DinoDex current Dinosaur Info Last Filter (#{@filters}):"
> > +    else
> > +      dinosaurs = @dinosaurs
> > +      title = "DinoDex current Dinosaur Info:"
> > +    end
> > +    puts title
> > +    puts "----------------------"
> > +    dinosaurs.each do |dinosaur|
> > +      dinosaur.print_dinosaur_info
>
> Better than print_dinosaur_info would be to define to_s and then keep all
> your puts statements in this method. That way you can use dinosaurs
> without printing them to stdout.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jmmastey/level_up_exercises/pull/350/files#r21949109>.
>