Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module A
- def a_method
- puts 'bar'
- end
- end
- module B
- def a_method
- puts 'foo'
- super
- end
- end
- class Something
- end
- A.send(:include, B)
- Something.send(:include, A)
- Something.new.a_method # => foo bar
Add Comment
Please, Sign In to add comment