Class: ShapeOf::Nothing

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

Overview

Only passes when the key does not exist in the Hash.

Class Method Summary collapse

Methods inherited from Shape

#initialize

Constructor Details

This class inherits a constructor from ShapeOf::Shape

Class Method Details

.required?Boolean

Returns:



317
318
319
# File 'lib/shape_of.rb', line 317

def self.required?
  false
end

.shape_of?(object) ⇒ Boolean

Returns:



313
314
315
# File 'lib/shape_of.rb', line 313

def self.shape_of?(object)
  false
end