Class: ShapeOf::Shape
- Inherits:
-
Object
- Object
- ShapeOf::Shape
- Defined in:
- lib/shape_of.rb
Overview
Generic shape which all shapes subclass from
Class Method Summary collapse
- .required? ⇒ Boolean
- .shape_of?(object, validator: Validator.new(shape: self, object: object)) ⇒ Boolean
Instance Method Summary collapse
-
#initialize ⇒ Shape
constructor
A new instance of Shape.
Constructor Details
#initialize ⇒ Shape
Returns a new instance of Shape.
213 214 215 |
# File 'lib/shape_of.rb', line 213 def initialize(*) raise NotImplementedError end |
Class Method Details
.shape_of?(object, validator: Validator.new(shape: self, object: object)) ⇒ Boolean
205 206 207 |
# File 'lib/shape_of.rb', line 205 def self.shape_of?(object, validator: Validator.new(shape: self, object: object)) raise NotImplementedError end |