Skip to content

Instantly share code, notes, and snippets.

@briu
Created August 26, 2016 11:14
Show Gist options
  • Save briu/96309801af9e59b3f57daaac483755cf to your computer and use it in GitHub Desktop.
Save briu/96309801af9e59b3f57daaac483755cf to your computer and use it in GitHub Desktop.
interview
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