Module: ShapeOf
- Defined in:
- lib/shape_of.rb
Overview
And these fail: “‘ruby hash_shape.shape_of?({ foo: { inner_value: ’bar’ } }) # => false hash_shape.shape_of?({ value: 23 }) # => false hash_shape.shape_of?({ value: [23] }) # => false hash_shape.shape_of?({ value: [{}] }) # => false “‘
Defined Under Namespace
Modules: Assertions Classes: Any, Array, Hash, Nothing, Optional, Shape, Union