Class: Hiera::Backend::Eyaml::Parser::Token
- Inherits:
-
Object
- Object
- Hiera::Backend::Eyaml::Parser::Token
- Defined in:
- lib/hiera/backend/eyaml/parser/token.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#match ⇒ Object
readonly
Returns the value of attribute match.
Instance Method Summary collapse
-
#initialize(match) ⇒ Token
constructor
A new instance of Token.
- #to_decrypted(_args = {}) ⇒ Object
- #to_encrypted(_args = {}) ⇒ Object
- #to_plain_text ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(match) ⇒ Token
Returns a new instance of Token.
17 18 19 |
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 17 def initialize(match) @match = match end |
Instance Attribute Details
#match ⇒ Object (readonly)
Returns the value of attribute match.
15 16 17 |
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 15 def match @match end |
Instance Method Details
#to_decrypted(_args = {}) ⇒ Object
25 26 27 |
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 25 def to_decrypted(_args = {}) raise 'Abstract method called' end |
#to_encrypted(_args = {}) ⇒ Object
21 22 23 |
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 21 def to_encrypted(_args = {}) raise 'Abstract method called' end |
#to_plain_text ⇒ Object
29 30 31 |
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 29 def to_plain_text raise 'Abstract method called' end |
#to_s ⇒ Object
33 34 35 |
# File 'lib/hiera/backend/eyaml/parser/token.rb', line 33 def to_s "#{self.class.name}:#{@match}" end |