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

[custom-validation-messages] -> WIP #101

Open 0exp opened 4 years ago

0exp commented 4 years ago

Concept:

validate :some_option, :integer, error_message: 'Some error message'
config.settings.some_option = "text" # => Qonfig::ValidationError "Some error message"