💎 LearnRuby
Lessons Leaderboard
EN RU
Sign In Sign Up
Lessons Leaderboard
Language: EN RU
Sign In Sign Up
Lessons / The 'it' Parameter
Module 4 Modern Ruby Ruby 3.4

The 'it' Parameter

Ruby 3.4

Learn about Ruby 3.4's new 'it' keyword for single-parameter blocks.

Exercise (3)

â—‹
1.

Using 'it' in map

Refactor code to use the new 'it' parameter syntax.

20 points ruby 3.4 it parameter
â—‹
2.

Chaining with 'it'

Use 'it' for method chaining in blocks.

15 points ruby 3.4 it parameter
â—‹
3.

Filter with 'it'

Use 'it' with select and reject methods.

15 points ruby 3.4 it parameter

Lesson Info

Beginner
Modern Ruby
Exercise
3
Total Points
50
Ruby Version
3.4
Sign in to start
Back to all lessons

LearnRuby - Learn Ruby 3.4 with interactive exercises