Skip to content

Instantly share code, notes, and snippets.

@ymendel
Created July 21, 2010 19:10
Show Gist options
  • Save ymendel/484978 to your computer and use it in GitHub Desktop.
Save ymendel/484978 to your computer and use it in GitHub Desktop.
class Blah
def blah
puts 'hey'
extend Feh
blah
puts 'x'
end
end
module Feh
def blah
puts 'yo'
end
end
>> b = Blah.new
=> #<Blah:0x165c88>
>> b.blah
hey
yo
x
=> nil
>> b.blah
yo
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment