Created
January 1, 2012 20:02
-
-
Save nordringrayhide/1548197 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Chef | |
class Recipe | |
def search | |
puts 'A' | |
end | |
end | |
end | |
module LocalSearch | |
def search | |
puts 'B' | |
end | |
end | |
module Chef | |
class Recipe | |
include LocalSearch | |
# undef :search | |
end | |
end | |
Chef::Recipe.new.search | |
class Chef::Recipe | |
def search | |
puts 'C' | |
end | |
end | |
Chef::Recipe.new.search | |
# => A | |
# => C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment