Created
October 31, 2016 03:09
-
-
Save kodaitakahashi/b2f7ce8cf073c8f2c2fb71e968843651 to your computer and use it in GitHub Desktop.
サブクラスからprivateメソッドの呼び出し
This file contains 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
class Hoge | |
private | |
def hoge | |
puts 'hoge' | |
end | |
end | |
class Fuga < Hoge | |
def hoge | |
super | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment