module Hashape
Provides utilities for checking the shape of deeply-nested hashes, such as for validating JSON.
Constants
- VERSION
The library version.
Public Class Methods
shape(shape)
click to toggle source
Create a new shape. @param [Hash] shape The template hash. @return [Shape] The new shape.
# File lib/hashape.rb, line 116 def self.shape(shape) Shape.new(shape) end