Rubyスタイルガイドを読む: コレクション(Array、Hash、Setなど)

こんにちは、hachi8833です。Rubyスタイルガイドを読むシリーズの「コレクション」編は配列やハッシュのスタイルや利用法を扱います。 Rubyスタイルガイドを読む: 総もくじ 前回: Rubyスタイルガイドを読む: 例外処理 次回: Rubyスタイルガイドを読む: 数値、文字列、日時(日付・時刻・時間) コレクション 参照: bbatsov/ruby-style-guide 7-01【統一】配列やハッシュの作成は[]や{}によるリテラル表記が望ましい Prefer literal array and hash creation notation (unless you need to pass parame … 続きを読む Rubyスタイルガイドを読む: コレクション(Array、Hash、Setなど)