← Graph

yield_self

concept 2 connections

Method introduced in Ruby 2.5 that yields `self` to a block. Positioned as Ruby's answer to Elixir's pipe operator, though the community still considers the syntax incomplete for easy method chaining.

category
pattern
about
yield_self concept
Discusses Ruby 2.5's yield_self as a partial pipe equivalent.
concept yield_self
related_to
Ruby tool
Introduced in Ruby 2.5.

Provenance

Created in
Wroclove.rb 2018 — Lightning Talks 2026-04-17 16:18
Read by
6 extractions