Method: Sym::App::PrivateKey::KeySourceCheck#detect

Defined in:
lib/sym/app/private_key/key_source_check.rb

#detect(detector) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/sym/app/private_key/key_source_check.rb', line 29

def detect(detector)
  input_value = input.call(detector)
  return nil unless input_value
  KeySourceResult.new(name,
                      reducted,
                      input_value,
                      output.call(detector, input_value))
end