Last active
October 26, 2017 11:12
-
-
Save amolpujari/538edc089b8b28097c9b9e0f175cf5f2 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
| ### write your solution here | |
| module M | |
| def method_m | |
| puts 'from m...' | |
| end | |
| end | |
| module N | |
| def method_n | |
| puts 'from n...' | |
| end | |
| end | |
| class A | |
| include M | |
| end | |
| A.new.class.method_n | |
| #=> should print "from n...", you wont reopen class A | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment