Class: Gitlab::Ci::Config::Entry::Rules

Inherits:
Gitlab::Config::Entry::ComposableArray show all
Includes:
Gitlab::Config::Entry::Validatable
Defined in:
lib/gitlab/ci/config/entry/rules.rb,
lib/gitlab/ci/config/entry/rules/rule/changes.rb

Defined Under Namespace

Classes: Rule

Constant Summary

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

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

Instance Attribute Summary

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

#config, #default, #deprecation, #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::ComposableArray

#compose!, #descendants

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

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

Constructor Details

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

Instance Method Details

#composable_classObject



19
20
21
# File 'lib/gitlab/ci/config/entry/rules.rb', line 19

def composable_class
  Entry::Rules::Rule
end

#valueObject



15
16
17
# File 'lib/gitlab/ci/config/entry/rules.rb', line 15

def value
  [super].flatten
end