Class: ShapeOf::Nothing

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

Overview

Nothing 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:



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

def self.required?
  false
end

.shape_of?(object) ⇒ Boolean

Returns:



310
311
312
# File 'lib/shape_of.rb', line 310

def self.shape_of?(object)
  false
end