Skip to content

Instantly share code, notes, and snippets.

@amolpujari
Last active October 26, 2017 11:12
Show Gist options
  • Select an option

  • Save amolpujari/538edc089b8b28097c9b9e0f175cf5f2 to your computer and use it in GitHub Desktop.

Select an option

Save amolpujari/538edc089b8b28097c9b9e0f175cf5f2 to your computer and use it in GitHub Desktop.
### 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