Class: ScoutApm::Config::ConfigNull

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_apm/config.rb

Overview

Good News: It has every config value you could want Bad News: The content of that config value is always nil Used for the null-object pattern

Instance Method Summary collapse

Instance Method Details

#any_keys_found?Boolean

Returns:

  • (Boolean)


438
439
440
# File 'lib/scout_apm/config.rb', line 438

def any_keys_found?
  false
end

#has_key?Boolean

Returns:

  • (Boolean)


434
435
436
# File 'lib/scout_apm/config.rb', line 434

def has_key?(*)
  true
end

#nameObject



442
443
444
# File 'lib/scout_apm/config.rb', line 442

def name
  "no-config"
end

#valueObject



430
431
432
# File 'lib/scout_apm/config.rb', line 430

def value(*)
  nil
end