module ShapeOf
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 “`
Constants
- Boolean
Union[TrueClass, FalseClass]
- Numeric
Union[Integer, Float, Rational, Complex]