undefined.rb 645 Bytes
Newer Older
1 2
# frozen_string_literal: true

3 4 5
module Gitlab
  module Ci
    class Config
6
      module Entry
7
        ##
8
        # This class represents an undefined entry.
9
        #
10
        class Undefined < Node
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
          def initialize(*)
            super(nil)
          end

          def value
            nil
          end

          def valid?
            true
          end

          def errors
            []
          end

27
          def specified?
28
            false
29
          end
30 31 32 33

          def relevant?
            false
          end
34 35 36 37

          def inspect
            "#<#{self.class.name}>"
          end
38 39 40 41 42
        end
      end
    end
  end
end