class Hiera::Backend::Eyaml::Parser::DecStringTokenType

Public Class Methods

new() click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 115
def initialize
  @regex = /DEC(\(\d+\))?::(\w+)\[(.+?)\]\!/
end

Public Instance Methods

create_token(string) click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 118
def create_token(string)
  md = @regex.match(string)
  EncToken.decrypted_value(:string, md[3], md[2], string, md[1])
end