Module: Grape::Validations
- Defined in:
- lib/grape/validations.rb,
lib/grape/validations/coerce.rb,
lib/grape/validations/regexp.rb,
lib/grape/validations/values.rb,
lib/grape/validations/default.rb,
lib/grape/validations/presence.rb,
lib/grape/validations/exactly_one_of.rb,
lib/grape/validations/mutual_exclusion.rb
Defined Under Namespace
Modules: ClassMethods Classes: CoerceValidator, DefaultValidator, ExactlyOneOfValidator, MutualExclusionValidator, ParamsScope, PresenceValidator, RegexpValidator, SingleOptionValidator, Validator, ValuesValidator
Class Attribute Summary collapse
-
.validators ⇒ Object
Returns the value of attribute validators.
Class Method Summary collapse
Class Attribute Details
.validators ⇒ Object
Returns the value of attribute validators.
75 76 77 |
# File 'lib/grape/validations.rb', line 75 def validators @validators end |
Class Method Details
.register_validator(short_name, klass) ⇒ Object
80 81 82 |
# File 'lib/grape/validations.rb', line 80 def self.register_validator(short_name, klass) validators[short_name] = klass end |