Project

General

Profile

Actions

Feature #16104

open

Introduce merge_if and merge_if!

Added by akash (Akash Gupta) over 4 years ago. Updated over 4 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:94354]

Description

The method merge_if / merge_if will merge the passed hash in parameter only if the block evaluates to true, otherwise not. Similar to count method with a block.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0