Skip to content

Instantly share code, notes, and snippets.

@maysam
Created June 13, 2022 09:20
Show Gist options
  • Save maysam/6d2ca2454af51a4efe35f1995ec16355 to your computer and use it in GitHub Desktop.
Save maysam/6d2ca2454af51a4efe35f1995ec16355 to your computer and use it in GitHub Desktop.
def reverse(str)
str&.reverse
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment