Document Searchable.

This commit is contained in:
Markus Reiter 2020-08-19 07:07:29 +02:00
parent 4718b8e434
commit 735b744369

View File

@ -1,5 +1,8 @@
# frozen_string_literal: true
# Helper module for making a class searchable with both regular expressions and strings.
#
# @api private
module Searchable
def search(string_or_regex, &block)
case string_or_regex