Skip to content

Instantly share code, notes, and snippets.

@LTe
Created June 5, 2011 17:19
Show Gist options
  • Save LTe/1009183 to your computer and use it in GitHub Desktop.
Save LTe/1009183 to your computer and use it in GitHub Desktop.
class Array
def initialize(*args)
self.replace args
end
puts Array.new 1,2,3 #=> [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment