Project

General

Profile

Actions

Feature #16104

open

Introduce merge_if and merge_if!

Added by akash (Akash Gupta) almost 2 years ago. Updated almost 2 years ago.

Status:
Open
Priority:
Normal
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