Module: Mailkube::_HeaderMap

Defined in:
sig/mailkube/webhooks.rbs

Overview

The narrowest thing a header mapping has to be: something that yields name/value pairs.

The block takes a pair, matching how RBS declares Hash#each, so a plain Hash satisfies this. Ruby's block destructuring means { |name, value| ... } reads a pair either way, which is also what lets a mapping that yields two arguments — ActionDispatch::Http::Headers — work at runtime.

Instance Method Summary collapse

Instance Method Details

#each {|arg0| ... } ⇒ void

This method returns an undefined value.

Yields:

Yield Parameters:

  • arg0 ([untyped, untyped])

Yield Returns:

  • (void)


28
# File 'sig/mailkube/webhooks.rbs', line 28

def each: () { ([untyped, untyped]) -> void } -> void