DinoDex 9/8/2014

I'm doing this to continue the loop, while walking through-it via
terminal... There should be a better way, but overall I reset it since it's
always more or less looking for chomp at some point

On Mon, Sep 8, 2014 at 7:45 PM, Joseph Mastey <notifications@github.com>
wrote:

> In dino_catalog/dinodex.rb:
>
> > +  puts Dinodex::AVAILABLE_COMMANDS
> > +  print 'Enter a command: '
> > +  gets.chomp
> > +end
> > +
> > +command = available_commands
> > +defaults = %w('exit search info list back')
> > +
> > +while command != 'exit'
> > +  if command == 'search'
> > +    dex.search
> > +    command = available_commands
> > +  end
> > +  if command == 'info'
> > +    choices = dex.info
> > +    command = available_commands if choices == 'back'
>
> It's weird to be resetting the command value here. I feel like you're
> messing with that value too much.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jmmastey/level_up_exercises/pull/30/files#r17276669>.
>