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)


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

def any_keys_found?
  false
end

#has_key?Boolean

Returns:

  • (Boolean)


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

def has_key?(*)
  true
end

#nameObject



313
314
315
# File 'lib/scout_apm/config.rb', line 313

def name
  "no-config"
end

#valueObject



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

def value(*)
  nil
end