Class: Hiera::Backend::Eyaml::Parser::NonMatchToken

Inherits:
Token
  • Object
show all
Defined in:
lib/hiera/backend/eyaml/parser/token.rb

Instance Attribute Summary

Attributes inherited from Token

#match

Instance Method Summary collapse

Methods inherited from Token

#to_s

Constructor Details

#initialize(non_match) ⇒ NonMatchToken

Returns a new instance of NonMatchToken.



38
39
40
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 38

def initialize(non_match)
  super
end

Instance Method Details

#to_decrypted(_args = {}) ⇒ Object



46
47
48
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 46

def to_decrypted(_args = {})
  @match
end

#to_encrypted(_args = {}) ⇒ Object



42
43
44
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 42

def to_encrypted(_args = {})
  @match
end

#to_plain_textObject



50
51
52
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 50

def to_plain_text
  @match
end