Skip to content

Instantly share code, notes, and snippets.

@tigawa
Last active December 11, 2015 18:59
Show Gist options
  • Save tigawa/4645800 to your computer and use it in GitHub Desktop.
Save tigawa/4645800 to your computer and use it in GitHub Desktop.
ruby ハッシュ定義
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