Last active
December 19, 2015 14:58
-
-
Save hokaccha/5972576 to your computer and use it in GitHub Desktop.
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
# CRuby | |
def foo(key: 'foo') | |
puts key | |
end | |
foo(key: 'hoge') #=> 'hoge' |
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
# ruby motion(第一引数がないとSyntaxError) | |
def foo(a, key: val) | |
puts val | |
end | |
foo(1, key: 'hoge') #=> 'hoge' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment