Class: Contracts::Builtin::None

Inherits:
Object
  • Object
show all
Defined in:
lib/contracts-ruby2/lib/contracts/builtin_contracts.rb,
lib/contracts-ruby3/lib/contracts/builtin_contracts.rb

Overview

Fails for any argument.

Class Method Summary collapse

Class Method Details

.valid?(val) ⇒ Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/contracts-ruby2/lib/contracts/builtin_contracts.rb', line 74

def self.valid? val
  false
end