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] Custom error messages #100

Closed 0exp closed 4 years ago

0exp commented 4 years ago
validate :some_option, :integer, error_message: 'Some error message'
config.settings.some_option = "text" # => Qonfig::ValidationError "Some error message"
0exp commented 4 years ago

Go to https://github.com/0exp/qonfig/pull/101