Class: Gitlab::Config::Entry::Undefined

Inherits:
Node
  • Object
show all
Defined in:
lib/gitlab/config/entry/undefined.rb

Overview

This class represents an undefined entry.

Constant Summary

Constants inherited from Node

Node::InvalidError

Instance Attribute Summary

Attributes inherited from Node

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

Instance Method Summary collapse

Methods inherited from Node

#[], #add_warning, #ancestors, aspects, #compose!, default, #descendants, #hash?, #integer?, #leaf?, #location, #opt, #string?, #warnings, with_aspect

Constructor Details

#initializeUndefined

Returns a new instance of Undefined.


10
11
12
# File 'lib/gitlab/config/entry/undefined.rb', line 10

def initialize(*)
  super(nil)
end

Instance Method Details

#errorsObject


22
23
24
# File 'lib/gitlab/config/entry/undefined.rb', line 22

def errors
  []
end

#inspectObject


34
35
36
# File 'lib/gitlab/config/entry/undefined.rb', line 34

def inspect
  "#<#{self.class.name}>"
end

#relevant?Boolean

Returns:


30
31
32
# File 'lib/gitlab/config/entry/undefined.rb', line 30

def relevant?
  false
end

#specified?Boolean

Returns:


26
27
28
# File 'lib/gitlab/config/entry/undefined.rb', line 26

def specified?
  false
end

#valid?Boolean

Returns:


18
19
20
# File 'lib/gitlab/config/entry/undefined.rb', line 18

def valid?
  true
end

#valueObject


14
15
16
# File 'lib/gitlab/config/entry/undefined.rb', line 14

def value
  nil
end