debian-mirror-gitlab/lib/gitlab/ci/config/node/undefined.rb
2016-09-29 09:46:39 +05:30

38 lines
596 B
Ruby

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