Last active
December 11, 2015 18:59
-
-
Save tigawa/4645800 to your computer and use it in GitHub Desktop.
ruby ハッシュ定義
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
nst_section = { | |
:cello => '絃楽器', | |
:clarinet => '木管楽器' | |
} | |
#キーがシンボルでない場合、rubyが1.9でない場合はこちらは使用できない | |
inst_section = { | |
cello: '絃楽器' | |
clarinet: '木管楽器’ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment