Class: Ree::Contracts::ArgContracts::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/ree/contracts/arg_contracts/block.rb

Direct Known Subclasses

Optblock

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.valid?Boolean

Returns:

  • (Boolean)

Raises:



6
7
8
# File 'lib/ree/contracts/arg_contracts/block.rb', line 6

def self.valid?(*)
  raise BadContractError, "#{name} contract is not allowed to use as argument contract"
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/ree/contracts/arg_contracts/block.rb', line 10

def to_s
  "Block"
end