Class: Evilution::Config::Validators::Hooks Private
- Defined in:
- lib/evilution/config/validators/hooks.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .call(value) ⇒ Object private
Class Method Details
.call(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 9 10 11 |
# File 'lib/evilution/config/validators/hooks.rb', line 6 def self.call(value) return {} if value.nil? raise Evilution::ConfigError, "hooks must be a mapping of event names to file paths, got #{value.class}" unless value.is_a?(Hash) value end |