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.



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

def initialize(non_match)
  super
end

Instance Method Details

#to_decrypted(_args = {}) ⇒ Object



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

def to_decrypted(_args = {})
  @match
end

#to_encrypted(_args = {}) ⇒ Object



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

def to_encrypted(_args = {})
  @match
end

#to_plain_textObject



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

def to_plain_text
  @match
end