Skip to content

Instantly share code, notes, and snippets.

@DanielHeath
Last active August 29, 2015 13:55
Show Gist options
  • Save DanielHeath/8778730 to your computer and use it in GitHub Desktop.
Save DanielHeath/8778730 to your computer and use it in GitHub Desktop.
Today in code
def int_to_bool value
value == "0" ? false : true
end
@DanielHeath
Copy link
Author

This was inside a class which is only defined when an environment variable is set.

@DanielHeath
Copy link
Author

Integer zero is not actually == to string zero :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment