Skip to content

Instantly share code, notes, and snippets.

@pointcom
Created January 8, 2018 11:01
Show Gist options
  • Save pointcom/7a809a3dfddf77019e9d07bb06cf8ae1 to your computer and use it in GitHub Desktop.
Save pointcom/7a809a3dfddf77019e9d07bb06cf8ae1 to your computer and use it in GitHub Desktop.
# Ruby >= 2.2
mystring = "Hello World"
mystring&.upcase
=> "HELLO WORLD"
mystring = nil
mystring&.upcase
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment