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.
Well wait a minute here, because I actually think this is a good solution
:).  How else can I do > or < comparisons as I please, as in the biped
comparison?  This allows me to do that all at once.  I am sure there are
other solutions, but that is precisely why.  So I can do things like == a
period and also < a weight.

*Jeremy Finzel*

*Senior Database Developer*
*M* 630-777-4520




On Tue, Dec 16, 2014 at 8:29 PM, Joseph Mastey <notifications@github.com>
wrote:
>
> In dino_catalog/main.rb
> <https://github.com/jmmastey/level_up_exercises/pull/350#discussion-diff-21949159>
> :
>
> > +  # All Biped
> > +  options = { "==" => { walking: 'Biped' } }
> > +  puts 'BIPEDS:'
> > +
> > +  dino_info.filter_dinosaurs(options)
> > +  dino_info.dinosaurs_filtered.each do |dinosaur|
> > +    puts "#{dinosaur.inspect}, @is_carnivore=#{dinosaur.carnivore?}"
> > +  end
> > +
> > +  # All Carnivores, Insectivores, Piscivore'
> > +  dino_info.filter_dinosaurs("==" => { carnivore?: true })
> > +  puts 'CARNIVORES'
> > +  dino_info.dinosaurs_filtered.each { |dinosaur| puts "#{dinosaur.inspect}" }
> > +
> > +  # By Period
> > +  dino_info.filter_dinosaurs("==" => { period: 'Cretaceous' })
>
> This filter syntax is a little odd. I see why the comment in DinosaurInfo.
> I don't care enough that you need to change it :)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jmmastey/level_up_exercises/pull/350/files#r21949159>.
>