Class: Ree::Contracts::ArgContracts::None

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

Class Method Summary collapse

Class Method Details

.to_sObject



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

def self.to_s
  "None"
end

.valid?Boolean

Returns:

  • (Boolean)

Raises:



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

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