Created
August 26, 2016 11:14
-
-
Save briu/96309801af9e59b3f57daaac483755cf to your computer and use it in GitHub Desktop.
interview
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 test | |
puts "module A" | |
end | |
end | |
module B | |
def test | |
puts "module B" | |
end | |
end | |
class FirstClass | |
def test | |
puts "class FirstClass" | |
end | |
end | |
class SecondClass < FirstClass | |
include A | |
include B | |
end | |
a = SecondClass.new | |
puts a.test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment