Class: UnifiedSettings::Handlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/unified_settings/handlers/base.rb

Overview

Base handler for a setting source

All handers should inherit from this base class and implement the method

def get(key, case_sensitive: nil)

Direct Known Subclasses

ConfigGem, Constants, Credentials, Env

Constant Summary collapse

KEY_NESTING_SEPARATOR =
'.'

Instance Method Summary collapse

Instance Method Details

#get(key, case_sensitive: nil) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



13
14
15
# File 'lib/unified_settings/handlers/base.rb', line 13

def get(key, case_sensitive: nil)
  raise 'Needs to be implemented by subclasss'
end