Class: Evilution::Config::Validators::SpecPattern Private
- Defined in:
- lib/evilution/config/validators/spec_pattern.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/spec_pattern.rb', line 6 def self.call(value) return nil if value.nil? return value if value.is_a?(String) raise Evilution::ConfigError, "spec_pattern must be nil or a String glob, got #{value.class}" end |