Skip to content

Instantly share code, notes, and snippets.

@vjdhama
Last active September 29, 2015 10:33
Show Gist options
  • Save vjdhama/ac852f80b989ebc7be7f to your computer and use it in GitHub Desktop.
Save vjdhama/ac852f80b989ebc7be7f to your computer and use it in GitHub Desktop.
Union Types
if some_condition
name = "foo" #=> String
else
name = false #=> Boolean
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment