Skip to content
paweldu.dev
Posts
Tags
About
Search
Go back
Ruby 2.7 - New Syntax To Refer Block Arguments
Published:
Mar 17, 2019
|
at
11:00 PM
Ruby < 2.7
[
1
,
2
,
3
,
4
,
5
].
map
{ |
x
| x
*
7
}
Ruby 2.7
[
1
,
2
,
3
,
4
,
5
].
map
{ @
1
*
7
}
Source
til
ruby
Back to Top
Share this post on:
Share this post via WhatsApp
Share this post on Facebook
Tweet this post
Share this post via Telegram
Share this post on Pinterest
Share this post via email