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.
Makes sense, thanks.

*Jeremy Finzel*

*Senior Database Developer*
*M* 630-777-4520




On Tue, Dec 16, 2014 at 8:28 PM, Joseph Mastey <notifications@github.com>
wrote:
>
> In dino_catalog/dinosaur_info.rb
> <https://github.com/jmmastey/level_up_exercises/pull/350#discussion-diff-21949144>
> :
>
> > +    puts title
> > +    puts "----------------------"
> > +    dinosaurs.each do |dinosaur|
> > +      dinosaur.print_dinosaur_info
> > +      puts "----------------------"
> > +    end
> > +  end
> > +
> > +  def json_export(include_filter = false)
> > +    if include_filter
> > +      dinosaurs = @dinosaurs_filtered
> > +    else
> > +      dinosaurs = @dinosaurs
> > +    end
> > +    dinosaurs.to_json
> > +  end
>
> Name this to_json. Since we're not really saving any complexity, remove
> the local var:
>
> def to_json(include_filter = false)
>   if include_filter
>     @dinosaurs_filtered.to_json
>   else
>     @dinosaurs.to_json
>   end
> end
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jmmastey/level_up_exercises/pull/350/files#r21949144>.
>