debian-mirror-gitlab/lib/gitlab/ci/config/node/null.rb
2016-09-13 17:45:13 +05:30

34 lines
525 B
Ruby

module Gitlab
module Ci
class Config
module Node
##
# This class represents an undefined node.
#
# Implements the Null Object pattern.
#
class Null < Entry
def value
nil
end
def valid?
true
end
def errors
[]
end
def specified?
false
end
def relevant?
false
end
end
end
end
end
end