class Hiera::Backend::Eyaml::Parser::EncHieraTokenType
Public Class Methods
new()
click to toggle source
# File lib/hiera/backend/eyaml/parser/encrypted_tokens.rb, line 114 def initialize @regex = /ENC\[(\w+,)?([a-zA-Z0-9\+\/ =\n]+?)\]/ @string_token_type = EncStringTokenType.new() 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) @string_token_type.create_token(string.gsub(/\s/, '')) end