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.


33
34
35
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 33

def initialize(non_match)
  super(non_match)
end

Instance Method Details

#to_decrypted(args = {}) ⇒ Object


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

def to_decrypted(args={})
  @match
end

#to_encrypted(args = {}) ⇒ Object


36
37
38
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 36

def to_encrypted(args={})
  @match
end

#to_plain_textObject


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

def to_plain_text
  @match
end