You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f413799
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just now, I've become aware that
::ENV[]=
is documented (for YARV Ruby 2.2.5) as:"Sets the environment variable name to value. If the value given is nil the environment variable is deleted."
In that light, briefer code implementing the above functionality would be:
But I don't know whether
::ENV[]=
works that same way in all the Rubies (and their versions) which Rake supports.