Search
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Jump to a project...
All Projects
Ruby Issue Tracking System
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
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]
```
BenMorganIO (Ben Morgan)
10:59 PM
Ruby
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:
```ruby
user.posts.map { |post| post.title }
```
Sometimes, however, that method might take arguments. This feature propo...
BenMorganIO (Ben Morgan)
Also available in:
Atom
Loading...