Thanks!!


On Wed, Apr 30, 2014 at 12:02 PM, Michael Ornellas <notifications@github.com
> wrote:

> In library.rb:
>
> >    end
> >
> >    def check_in_book(book)
> > +
> > +    if book && book.status =="checked_out"
> > +       book.status = "available"
> > +
> > +    end
> >    end
> >
> >    def available_books
>
> this method works, but you could write it in a simpler way using the
> select method.
>
> You could replace the entire contents of the method with:
>
> @books.select do |book|
>   book.status == "available"end
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/makersquare/ruby-course/pull/162/files#r12153527>
> .
>