Created
June 11, 2019 08:55
-
-
Save dabonka/75cabff296c546c1353a0f23b35ece8b 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 A | |
def initialize | |
puts 'A' | |
end | |
end | |
module B | |
def initialize | |
puts 'B' | |
super | |
end | |
end | |
module C | |
def initialize | |
super | |
puts 'C' | |
end | |
end | |
class Stack | |
include A | |
include B | |
include C | |
def initialize | |
super | |
puts 'S' | |
end | |
end | |
Stack.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment