You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: variable_helpers.rb
    path of file: ./repos/dd-trace-rb/lib/datadog/core/environment
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Datadog
  module Core
    # Namespace for handling application environment
    module Environment
      # Defines helper methods for environment
      # @public_api
      module VariableHelp
    
        def env_to_bool(var, default = nil, deprecation_warning: true)
          var = decode_array(var, deprecation_warning)
          if var && ENV.key?(var)
            value = ENV[var].to_s.strip
            value.downcase!
            value == 'true' || value == '1' # rubocop:disable Style/MultipleComparison
          else
            default
          end