Method: NewRelic::Agent::Configuration::Manager#apply_mask

Defined in:
lib/new_relic/agent/configuration/manager.rb

#apply_mask(hash) ⇒ Object

[View source]

258
259
260
261
262
263
# File 'lib/new_relic/agent/configuration/manager.rb', line 258

def apply_mask(hash)
  MASK_DEFAULTS \
    .select { |_, proc| proc.call } \
    .each { |key, _| hash.delete(key) }
  hash
end