Class: Hiera::Backend::Eyaml::Parser::EncHieraTokenType
- Inherits:
-
EncTokenType
- Object
- TokenType
- EncTokenType
- Hiera::Backend::Eyaml::Parser::EncHieraTokenType
- Defined in:
- lib/hiera/backend/eyaml/parser/encrypted_tokens.rb
Instance Attribute Summary
Attributes inherited from TokenType
Instance Method Summary collapse
- #create_token(string) ⇒ Object
-
#initialize ⇒ EncHieraTokenType
constructor
A new instance of EncHieraTokenType.
Methods inherited from EncTokenType
Constructor Details
#initialize ⇒ EncHieraTokenType
Returns a new instance of EncHieraTokenType.
85 86 87 88 |
# File 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb', line 85 def initialize @regex = /ENC\[(\w+,)?([a-zA-Z0-9\+\/ =\n]+?)\]/ @string_token_type = EncStringTokenType.new() end |
Instance Method Details
#create_token(string) ⇒ Object
89 90 91 |
# File 'lib/hiera/backend/eyaml/parser/encrypted_tokens.rb', line 89 def create_token(string) @string_token_type.create_token(string.gsub(/\s/, '')) end |