Update ruby.rb

Use symbol-to-proc whenever possible.

Changed


```ruby
items.map { |item| item.some_attribute }
```

to:

```ruby
items.map(&:some_attribute)
```