Method: SettingsReader::Resolvers::Env#resolvable?

Defined in:
lib/settings_reader/resolvers/env.rb

#resolvable?(value, _path) ⇒ Boolean

Returns true when value starts from ‘env://`

Returns:

  • (Boolean)


8
9
10
11
12
# File 'lib/settings_reader/resolvers/env.rb', line 8

def resolvable?(value, _path)
  return unless value.respond_to?(:start_with?)

  value.start_with?(IDENTIFIER)
end