Class: ShapeOf::Shape

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

Overview

Generic shape which all shapes subclass from

Direct Known Subclasses

Any, Array, Hash, Nothing, Optional, Union

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeShape

Returns a new instance of Shape.

Raises:

  • (NotImplementedError)


125
126
127
# File 'lib/shape_of.rb', line 125

def initialize(*)
  raise NotImplementedError
end

Class Method Details

.required?Boolean

Returns:



121
122
123
# File 'lib/shape_of.rb', line 121

def self.required?
  true
end

.shape_of?Boolean

Returns:

Raises:

  • (NotImplementedError)


117
118
119
# File 'lib/shape_of.rb', line 117

def self.shape_of?(*)
  raise NotImplementedError
end