Skip to content

Commit

Permalink
Merge pull request cookpad#62 from nekketsuuu/nekketsuuu-add-example
Browse files Browse the repository at this point in the history
Add a missing example to ruby.ja from ruby.en
  • Loading branch information
nekketsuuu authored Apr 13, 2020
2 parents 590bca6 + 7f3e48f commit 6e6e6aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ruby.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,15 @@ Ruby プログラマとしての素養をある程度備えている者なら誰
- その他、DSL のために用意されていると考えられるメソッド。
- メソッド呼び出しを入れ子にする場合、他の規則で禁止されている場合を除いて、最も外側のメソッド呼び出しの括弧を省略してもよい。
- **[MUST]** メソッド名とメソッド呼び出しの括弧の間に空白を入れてはならない。

```ruby
# good
p(1 + 2)
# bad
p (1 + 2)
```

- **[SHOULD]** パラメータリストの末尾にハッシュリテラルを書く場合は、ハッシュリテラルの括弧を省略すること。

```ruby
Expand Down

0 comments on commit 6e6e6aa

Please sign in to comment.