Class: GraphqlDevise::MountMethod::OptionsValidator
- Inherits:
-
Object
- Object
- GraphqlDevise::MountMethod::OptionsValidator
- Defined in:
- lib/graphql_devise/mount_method/options_validator.rb
Instance Method Summary collapse
-
#initialize(validators = []) ⇒ OptionsValidator
constructor
A new instance of OptionsValidator.
- #validate! ⇒ Object
Constructor Details
#initialize(validators = []) ⇒ OptionsValidator
Returns a new instance of OptionsValidator.
6 7 8 |
# File 'lib/graphql_devise/mount_method/options_validator.rb', line 6 def initialize(validators = []) @validators = validators end |
Instance Method Details
#validate! ⇒ Object
10 11 12 |
# File 'lib/graphql_devise/mount_method/options_validator.rb', line 10 def validate! @validators.each(&:validate!) end |