BenMorganIO (Ben Morgan)
- Login: BenMorganIO
- Email: ben@benmorgan.io
- Registered on: 02/04/2015
- Last sign in: 01/03/2017
Issues
open | closed | Total | |
---|---|---|---|
Assigned issues | 0 | 0 | 0 |
Reported issues | 1 | 0 | 1 |
Activity
02/04/2015
- 11:00 PM Ruby master Feature #10829: Add to_proc method to the Array class
- Update example code, there was a missing `&`:
```ruby
[1, 2, 3, 4, 5].map(&[:+, 3])
# => [4, 5, 6, 7, 8]
```
- 10:59 PM Ruby master Feature #10829 (Open): Add to_proc method to the Array class
- In ruby, we've all seen this shortcut:
```ruby
user.posts.map(&:title)
```
The expanded version is:
```rub...
Also available in: Atom