Top Level Namespace

Defined Under Namespace

Modules: Cohere

Constant Summary collapse

EXTENSION_DIR =
File.expand_path(__dir__)
GEM_ROOT =
File.expand_path("../..", EXTENSION_DIR)

Instance Method Summary collapse

Instance Method Details

#enabled?(name) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
13
# File 'ext/cohere_transcribe_native/extconf.rb', line 10

def enabled?(name)
  value = ENV.fetch(name, nil)
  value && !value.empty? && !%w[0 false no off].include?(value.downcase)
end