class Hiera::Backend::Eyaml::Parser::DecBlockTokenType

Public Class Methods

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

Public Instance Methods

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