Sha256: ec0e08a1987c1bdea931cf3acd52704cfb1afcc7f80f14eb607d7e87005b2847
Contents?: true
Size: 1.05 KB
Versions: 25
Compression:
Stored size: 1.05 KB
Contents
class Hiera module Backend module Eyaml module Parser class TokenType attr_reader :regex @regex def create_token string raise 'Abstract method called' end end class Token attr_reader :match def initialize(match) @match = match end def to_encrypted(args={}) raise 'Abstract method called' end def to_decrypted(args={}) raise 'Abstract method called' end def to_plain_text raise 'Abstract method called' end def to_s "#{self.class.name}:#{@match}" end end class NonMatchToken < Token def initialize(non_match) super(non_match) end def to_encrypted(args={}) @match end def to_decrypted(args={}) @match end def to_plain_text @match end end end end end end
Version data entries
25 entries across 25 versions & 2 rubygems