Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created July 16, 2012 18:58
Show Gist options
  • Select an option

  • Save baroquebobcat/3124348 to your computer and use it in GitHub Desktop.

Select an option

Save baroquebobcat/3124348 to your computer and use it in GitHub Desktop.
class A
def initialize x
puts x
end
end
class B < A
def initialize y, z
super
end
end
B.new 1, 2
# => ArgumentError: wrong number of arguments (2 for 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment