Class: Handshake::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/handshake/block_contract.rb

Overview

For block-checking, we need a class which is_a? Proc for instance checking purposes but isn’t the same so as not to prevent the user from passing in explicitly defined procs as arguments. Retained for backwards compatibility; all blocks should be block contracts.

Class Method Summary collapse

Class Method Details

.===(o) ⇒ Object



34
# File 'lib/handshake/block_contract.rb', line 34

def Block.===(o); Proc === o; end