Issue #22121 has been updated by Yoann Le Touche.
At the start of the section you have the short version of the explanation
telling you to test if @variable is nil
> Short version: When testing for undefinedness, check whether the instance
> variable (@variable) is nil – if the corresponding
Issue #22121 has been updated by Thomas Vander Stichele.
If @variable.nil? works, then that's great!
Did you notice that this section of the documentation is a) very long and b)
*does not contain the solution written out* ? It's great that it tells you you
should test for nil, but it doesn't
Issue #22121 has been updated by Yoann Le Touche.
>From the documentation :
>[...]
>Thus, testing @variable for nil is the best option available right now. The
>has_variable? function should probably just go away, but removing it will
>>definitely break existing code.
To check if a variable