Module: Jenkins::Model::Descendants

Included in:
Jenkins::Model
Defined in:
lib/jenkins/model.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



81
82
83
# File 'lib/jenkins/model.rb', line 81

def clear
  @descendants = {}
end

#descendant(mod) ⇒ Object



72
73
74
75
# File 'lib/jenkins/model.rb', line 72

def descendant(mod)
  @descendants ||= clear
  @descendants[mod] = true
end

#descendant?(cls) ⇒ Boolean

Returns:

  • (Boolean)


85
86
87
# File 'lib/jenkins/model.rb', line 85

def descendant?(cls)
  @descendants[cls]
end

#descendantsObject



77
78
79
# File 'lib/jenkins/model.rb', line 77

def descendants
  @descendants.keys
end