Class: Ree::Contracts::ArgContracts::Block
- Defined in:
- lib/ree/contracts/arg_contracts/block.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.valid? ⇒ Boolean
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_s ⇒ Object
10 11 12 |
# File 'lib/ree/contracts/arg_contracts/block.rb', line 10 def to_s "Block" end |