Last active
October 24, 2015 15:02
-
-
Save 844196/8950608765d36673a8c9 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
class Keepoff | |
def udon | |
'うどん' | |
end | |
end | |
class Hyousikinuko | |
def udon | |
'うどん' | |
end | |
end | |
class Object | |
def hige? | |
self.respond_to? :udon | |
end | |
end | |
keep_off08 = Keepoff.new | |
hyousikinuko = Hyousikinuko.new | |
keep_off08.hige? #=> true | |
hyousikinuko.hige? #=> true | |
class Sasairc | |
def yasuna | |
'今日はなんだか殺気がすごい・・・' | |
end | |
end | |
sasairc_2 = Sasairc.new | |
sasairc_2.hige? #=> false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment