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

Version Path
hiera-eyaml-3.4.0 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-3.3.0 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-3.2.2 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-3.2.1 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-3.2.0 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-3.1.1 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-3.1.0 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-3.0.0 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.1.0 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.1.0.rc2 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.1.0.rc1 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.8 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.7 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.6 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.5 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.4 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.3 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.2 lib/hiera/backend/eyaml/parser/token.rb
hiera-eyaml-2.0.1 lib/hiera/backend/eyaml/parser/token.rb
clarenceb-hiera-eyaml-2.0.1 lib/hiera/backend/eyaml/parser/token.rb