Class: Validate::CompiledValidations

Inherits:
Struct
  • Object
show all
Defined in:
lib/validate/parser.rb

Overview

CompiledValidations is a struct that represents a set of compiled validations + options, eg. whether to allow extra keys.

Instance Attribute Summary collapse

Instance Attribute Details

#allow_keysObject

Returns the value of attribute allow_keys

Returns:

  • (Object)

    the current value of allow_keys



32
33
34
# File 'lib/validate/parser.rb', line 32

def allow_keys
  @allow_keys
end

#validationsObject

Returns the value of attribute validations

Returns:

  • (Object)

    the current value of validations



32
33
34
# File 'lib/validate/parser.rb', line 32

def validations
  @validations
end