Skip to content

Instantly share code, notes, and snippets.

@dbalatero
Created June 8, 2011 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dbalatero/1013794 to your computer and use it in GitHub Desktop.
Save dbalatero/1013794 to your computer and use it in GitHub Desktop.
module A
def self.foo
puts "yes"
end
end
module B
def foo
puts "no"
end
end
A.extend(B)
puts A.foo # => "yes"
# wtf!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment