Skip to content

Instantly share code, notes, and snippets.

@asterite
Created January 29, 2015 17:05
Show Gist options
  • Save asterite/fb639eee1c13932d6293 to your computer and use it in GitHub Desktop.
Save asterite/fb639eee1c13932d6293 to your computer and use it in GitHub Desktop.
class Tuple
def +(other)
Tuple.new *self, *other
end
end
a = {1, 'a'}
b = {"hey", 1.5}
c = a + b
puts c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment