Skip to content

Instantly share code, notes, and snippets.

@townie
Created June 12, 2020 16:50
Show Gist options
  • Save townie/1802af603c4c4cd08f1a935b6aa79206 to your computer and use it in GitHub Desktop.
Save townie/1802af603c4c4cd08f1a935b6aa79206 to your computer and use it in GitHub Desktop.
def some_function(value):
value = value or "Potato"
def some_function(value)
value ||= "Potato"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment