Skip to content

Instantly share code, notes, and snippets.

@ujihisa
Created May 7, 2009 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ujihisa/107952 to your computer and use it in GitHub Desktop.
Save ujihisa/107952 to your computer and use it in GitHub Desktop.
class Array
def change!
self << 1
end
end
a = [1, 2, 3]
p a.change! == a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment