Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement