lib/configliere/encrypted.rb
# the chain of symbol keys for a dotted path key,
# prefixing the last one with "encrypted_"
#
# @example
#    encrypted_key_path('amazon.api.key')
#    #=> [:amazon, :api, :encrypted_key]
the chain of symbol keys for a dotted path key,
prefixing the last one with "encrypted_"
the chain of symbol keys for a dotted path key prefixing the last one with " encrypted_ "
def encrypted_key_path param
      encrypted_path = Array(convert_key(param))
      encrypted_path[-1] = "encrypted_#{encrypted_path.last}".to_sym
      encrypted_path
    end
def encrypted_key_path param encrypted_path = Array ( convert_key ( param ) ) encrypted_path [ - 1 ] = "encrypted_#{encrypted_path.last}" . to_sym encrypted_path end
the chain of symbol keys for a dotted path key,
prefixing the last one with "encrypted_"
the chain of symbol keys for a dotted path key prefixing the last one with " encrypted_ "
param
example
encrypted_key_path('amazon.api.key') #=> [:amazon, :api, :encrypted_key]
encrypted_key_path ( ' amazon . api . key ' ) # = > [ : amazon : api : encrypted_key ]