This is awesome. Thank you.


On Wed, Jan 8, 2014 at 9:24 AM, David Fisher <notifications@github.com>wrote:

> In quiz.rb:
>
> >
> > -# Question 2: Create a method called 'to_bool', which takes a string parameter called `questionable_string` and if the text of the string is 'true' then return true, else return false.
> > +# Question 2: Create a method called 'to_bool', which takes a string parameter called `questionable_string` and if the text of the string is 'true' then return true, else return false.
> > +def to_bool(questionable_string)
> > +	if questionable_string == true
>
> This can be simplified to just questionable_string == true without any
> ifs. This will evaluate to a boolean result.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tibbon/ga-method-conditional-quiz/pull/17/files#r8725009>
> .
>



-- 
Mike Stone
mikestone14@gmail.com
781.856.1156