Class: ShapeOf::Any

Inherits:
Shape
  • Object
show all
Defined in:
lib/shape_of.rb

Overview

Anything matches unless key does not exist in the Hash.

Class Method Summary collapse

Methods inherited from Shape

#initialize, required?

Constructor Details

This class inherits a constructor from ShapeOf::Shape

Class Method Details

.shape_of?(object, validator: Validator.new(shape: self, object: object)) ⇒ Boolean

Returns:



460
461
462
# File 'lib/shape_of.rb', line 460

def self.shape_of?(object, validator: Validator.new(shape: self, object: object))
  true
end