1
0
mirror of https://github.com/meineerde/holgerjust.de.git synced 2025-10-17 17:01:01 +00:00

Ruby default arguments article: Don't parse the source as erb

This commit is contained in:
Holger Just 2016-12-28 23:42:07 +01:00
parent 011e0619fc
commit bf52ae98de

View File

@ -118,7 +118,7 @@ with_value('foo', '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.