Class: Trixie::Contracts::TrixieYml

Inherits:
Dry::Validation::Contract
  • Object
show all
Defined in:
lib/trixie/contracts/trixie_yml.rb

Overview

class to validate .trixie.yml files Usage:

config_contract = Trixie::Contracts::TrixieYml.new
result = config_contract.call(config_options)
result.sucess?
result.errors.to_h