Skip to content

Instantly share code, notes, and snippets.

@nusco
Created August 18, 2010 12:09
Show Gist options
  • Save nusco/534488 to your computer and use it in GitHub Desktop.
Save nusco/534488 to your computer and use it in GitHub Desktop.
Post: "Why Inheritance Sucks"
module Bird
def fly
"Wheee!"
end
end
class Duck
include Bird
end
donald = Duck.new
donald.fly # => "Wheee!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment