0exp / qonfig

Powerful configuration Ruby-framework with a support for many commonly used config formats with a multi-functional API, developer-friendly DSL and object-oriented behavior.
MIT License
23 stars 8 forks source link

[validation] External Validation class with an importing api (validate_with(ValidatorClass)) #103

Open 0exp opened 4 years ago

0exp commented 4 years ago

Subject 🤔

Example:

class SomeValidator < Qonfig::Validator
end

class Config < Qonfig::DataSet
   validate_with(SomeValidator)
end