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)


304
305
306
# File 'lib/scout_apm/config.rb', line 304

def any_keys_found?
  false
end

#has_key?Boolean

Returns:

  • (Boolean)


300
301
302
# File 'lib/scout_apm/config.rb', line 300

def has_key?(*)
  true
end

#nameObject



308
309
310
# File 'lib/scout_apm/config.rb', line 308

def name
  "no-config"
end

#valueObject



296
297
298
# File 'lib/scout_apm/config.rb', line 296

def value(*)
  nil
end