Class: Evilution::Config::Validators::Integration Private

Inherits:
Base
  • Object
show all
Defined in:
lib/evilution/config/validators/integration.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.

Constant Summary collapse

ALLOWED =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

%i[rspec minitest test_unit].freeze

Class Method Summary collapse

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.

CLI users naturally write the gem name test-unit; the internal symbol uses underscore form to match the file path and registry key. Normalize hyphenated string input before coercion.



11
12
13
14
# File 'lib/evilution/config/validators/integration.rb', line 11

def self.call(value)
  value = value.tr("-", "_") if value.is_a?(String)
  coerce_symbol!(value, allowed: ALLOWED, name: "integration")
end