class Hiera::Backend::Eyaml::Parser::EncStringTokenType
Public Class Methods
Source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 121 def initialize @regex = %r{ENC\[(\w+,)?([a-zA-Z0-9+/=]+?)\]} end
Public Instance Methods
Source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 125 def create_token(string) md = @regex.match(string) create_enc_token(string, :string, md[1], md[2]) end