Class: Contracts::Constraints::Anything

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

Instance Method Summary collapse

Methods inherited from Base

#to_h

Instance Method Details

#descriptionObject



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

def description = "anything"

#matches?(_) ⇒ Boolean

Returns:

  • (Boolean)


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

def matches?(_) = true