Method: Contextify::PendingContext#each_block

Defined in:
lib/contextify/pending_context.rb

#each_block {|block| ... } ⇒ Object

Iterates over each block in the pending context.

Yields:

  • (block)

    The block will be passed each pending context block.

Yield Parameters:

  • block (Proc)

    A pending context block.



47
48
49
# File 'lib/contextify/pending_context.rb', line 47

def each_block(&block)
  @blocks.each_value(&block)
end