mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2026-02-21 19:12:05 +00:00
Ruby default arguments article: Don't parse the source as erb
This commit is contained in:
parent
011e0619fc
commit
bf52ae98de
@ -118,7 +118,7 @@ with_value('foo', 'value')
|
|||||||
# optional: value
|
# optional: value
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using a splat parameter
|
## Using a Splat Parameter
|
||||||
|
|
||||||
A third options is to use a splat parameter in the method's definition. This accepts an unlimited number of optional arguments and provided them to the method body in an array.
|
A third options is to use a splat parameter in the method's definition. This accepts an unlimited number of optional arguments and provided them to the method body in an array.
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user