Created
March 28, 2015 15:16
-
-
Save toshihirock/463ed3f133124d711740 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 Hoge | |
def filter_record | |
puts "hoge hello" | |
end | |
end | |
module Fuga | |
include Hoge | |
def filter_record | |
puts "Abc hello" | |
super | |
end | |
end | |
class Abc | |
include Fuga | |
def emit | |
puts "emit" | |
filter_record | |
end | |
def filter_record | |
super | |
puts "foo hello" | |
end | |
end | |
Abc.new.emit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment