Module: Ratatouille

Defined in:
lib/ratatouille.rb,
lib/ratatouille/hash.rb,
lib/ratatouille/array.rb,
lib/ratatouille/version.rb,
lib/ratatouille/ratifier.rb

Overview

Module to provide DSL for validation of complex Hashes

Defined Under Namespace

Modules: ArrayMethods, HashMethods Classes: Ratifier

Constant Summary

VERSION =

Gem Version

"1.4.3.1"

Instance Method Summary (collapse)

Instance Method Details

- (Validatable::Ratifier) ratify(obj, options = {}, &block)

Parameters:

  • obj (Hash, Array)

    Object to validate

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :is_a (Class)
  • :name (String, Symbol)

Returns:

  • (Validatable::Ratifier)


17
18
19
# File 'lib/ratatouille.rb', line 17

def ratify(obj, options={}, &block)
  Ratatouille::Ratifier.new(obj, options, &block)
end