DEV Community

Discussion on: Daily Challenge #40 - Counting Sheep

Collapse
 
thepeoplesbourgeois profile image
Josh

Ruby has pipes now?

Collapse
 
hanachin profile image
Seiei Miyagi

Yes! pipeline operator added.

Feature #15799: pipeline operator - Ruby master - Ruby Issue Tracking System

And Numbered parameters.

Feature #4475: default variable name for parameter - Ruby master - Ruby Issue Tracking System

It's not released yet. You can try those new syntax by rbenv install 2.7.0-dev.

Collapse
 
hanachin profile image
Seiei Miyagi

Sadly, pipeline operator is reverted.
github.com/ruby/ruby/commit/2ed68d...