debian-mirror-gitlab/lib/gitlab/ci/config/node/undefined.rb

39 lines
596 B
Ruby
Raw Normal View History

2016-08-24 12:49:21 +05:30
module Gitlab
module Ci
class Config
module Node
##
2016-09-29 09:46:39 +05:30
# This class represents an undefined node.
2016-08-24 12:49:21 +05:30
#
2016-09-29 09:46:39 +05:30
# Implements the Null Object pattern.
2016-08-24 12:49:21 +05:30
#
2016-09-29 09:46:39 +05:30
class Undefined < Entry
def initialize(*)
super(nil)
end
def value
nil
end
def valid?
true
end
def errors
[]
end
2016-09-13 17:45:13 +05:30
def specified?
2016-08-24 12:49:21 +05:30
false
end
2016-09-29 09:46:39 +05:30
def relevant?
false
end
2016-08-24 12:49:21 +05:30
end
end
end
end
end