Class: Gitlab::Ci::Config::Entry::Inherit::Default::ArrayStrategy

Inherits:
Gitlab::Config::Entry::Node show all
Includes:
Gitlab::Config::Entry::Validatable
Defined in:
lib/gitlab/ci/config/entry/inherit/default.rb

Constant Summary collapse

ALLOWED_VALUES =
::Gitlab::Ci::Config::Entry::Default::ALLOWED_KEYS.map(&:to_s).freeze

Constants inherited from Gitlab::Config::Entry::Node

Gitlab::Config::Entry::Node::InvalidError

Instance Attribute Summary

Attributes inherited from Gitlab::Config::Entry::Node

#config, #default, #description, #key, #metadata, #parent

Instance Method Summary collapse

Methods included from Gitlab::Config::Entry::Validatable

#compose!, #errors, included, #validate, #validator

Methods inherited from Gitlab::Config::Entry::Node

#[], #add_warning, #ancestors, aspects, #compose!, default, #descendants, #errors, #hash?, #initialize, #inspect, #integer?, #leaf?, #location, #opt, #relevant?, #specified?, #string?, #valid?, #value, #warnings, with_aspect

Constructor Details

This class inherits a constructor from Gitlab::Config::Entry::Node

Instance Method Details

#inherit?(key) ⇒ Boolean

Returns:

  • (Boolean)

32
33
34
# File 'lib/gitlab/ci/config/entry/inherit/default.rb', line 32

def inherit?(key)
  value.include?(key.to_s)
end