Class: DataMapper::Validate::ContextualValidators

Class | DataMapper::Validate::ContextualValidators
In: | lib/dm-validations/contextual_validators.rb
Parent: | Object

@author Guy van den Berg @since 0.9

### Methods

clear! context contexts dump execute

### Public Instance methods

clear!()

Clear all named context validators off of the resource

context(name)

Return an array of validators for a named context

@return <Array> An array of validators

contexts()

Get a hash of named context validators for the resource

@return <Hash> a hash of validators <GenericValidator>

dump()
execute(named_context, target)

Execute all validators in the named context against the target

@param <Symbol> named_context the context we are validating against @param <Object> target the resource that we are validating @return <Boolean> true if all are valid, otherwise false

[Validate]