summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config/node/null.rb
blob: 4f590f6bec80425e5f22b82d362730571dfa0124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module Gitlab
  module Ci
    class Config
      module Node
        ##
        # This class represents a configuration entry that is not being used
        # in configuration file.
        #
        # This implements Null Object pattern.
        #
        class Null < Entry
          def value
            nil
          end

          def validate!
            nil
          end

          def method_missing(*)
            nil
          end
        end
      end
    end
  end
end