Skip to content

Instantly share code, notes, and snippets.

@miloshadzic
Created February 21, 2013 00:15
Show Gist options
  • Save miloshadzic/5000897 to your computer and use it in GitHub Desktop.
Save miloshadzic/5000897 to your computer and use it in GitHub Desktop.
class A;end
module B
def hello
puts "hello"
end
end
A.hello => NoMethodError
A.extend(B).hello => "hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment