Skip to content

Instantly share code, notes, and snippets.

@dabonka
Created June 11, 2019 08:55
Show Gist options
  • Save dabonka/75cabff296c546c1353a0f23b35ece8b to your computer and use it in GitHub Desktop.
Save dabonka/75cabff296c546c1353a0f23b35ece8b to your computer and use it in GitHub Desktop.
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