Class: SettingsReader::Resolvers::Abstract

Inherits:
Object
  • Object
show all
Includes:
Mixins::Values
Defined in:
lib/settings_reader/resolvers/abstract.rb

Overview

Abstract resolver interface

Direct Known Subclasses

Env, Erb

Constant Summary

Constants included from Mixins::Values

Mixins::Values::PARSING_CLASSES

Instance Method Summary collapse

Methods included from Mixins::Values

#cast_value_from_string, #get_value_from_hash

Instance Method Details

#resolvable?(_value, _path) ⇒ Boolean

Should return true if value is resolvable

Returns:

  • (Boolean)


8
9
10
# File 'lib/settings_reader/resolvers/abstract.rb', line 8

def resolvable?(_value, _path)
  false
end

#resolve(value, _path) ⇒ Object

Should resolve value



13
14
15
# File 'lib/settings_reader/resolvers/abstract.rb', line 13

def resolve(value, _path)
  value
end