Created
October 13, 2011 21:38
-
-
Save Talleyran/1285611 to your computer and use it in GitHub Desktop.
This file contains 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 A | |
def a_xx | |
end | |
end | |
module B | |
def b_xx | |
end | |
end | |
class C | |
include A | |
end | |
A.send :include, B | |
puts C.instance_methods.select{|el|el.to_s=~/_xx$/} #a_xx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment