Class: Contracts::Constraints::Nothing

Inherits:
Base
  • Object
show all
Defined in:
lib/contracts.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Instance Method Details

#descriptionObject



282
# File 'lib/contracts.rb', line 282

def description = "nothing"

#matches?(_) ⇒ Boolean

Returns:

  • (Boolean)


281
# File 'lib/contracts.rb', line 281

def matches?(_) = false