Last active
January 20, 2016 12:58
-
-
Save toshia/245bea8c8a3a0f18ce14 to your computer and use it in GitHub Desktop.
did_you_mean gem、便利
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 WC | |
def unkonow | |
'うんこなう' | |
end | |
end # => :unkonow | |
WC.new.unkonow # => "うんこなう" | |
WC.new.unknown | |
# NoMethodError: undefined method `unknown' for #<WC:0x007fc4420e0f48> | |
# Did you mean? unkonow | |
# from (pry):27:in `__pry__' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment