Class: Puppet::Graph::Prioritizer Private
- Defined in:
- lib/puppet/graph/prioritizer.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Base, template method, class for Prioritizers. This provides the basic tracking facilities used.
Direct Known Subclasses
Instance Method Summary collapse
- #forget(key) ⇒ Object private
- #generate_priority_contained_in(container, key) ⇒ Object private
- #generate_priority_for(key) ⇒ Object private
-
#initialize ⇒ Prioritizer
constructor
private
A new instance of Prioritizer.
- #priority_of(key) ⇒ Object private
- #record_priority_for(key, priority) ⇒ Object private
Constructor Details
#initialize ⇒ Prioritizer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Prioritizer.
8 9 10 |
# File 'lib/puppet/graph/prioritizer.rb', line 8 def initialize @priority = {} end |
Instance Method Details
#forget(key) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/puppet/graph/prioritizer.rb', line 12 def forget(key) @priority.delete(key) end |
#generate_priority_contained_in(container, key) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/puppet/graph/prioritizer.rb', line 24 def generate_priority_contained_in(container, key) raise NotImplementedError end |
#generate_priority_for(key) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/puppet/graph/prioritizer.rb', line 20 def generate_priority_for(key) raise NotImplementedError end |
#priority_of(key) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'lib/puppet/graph/prioritizer.rb', line 28 def priority_of(key) @priority[key] end |
#record_priority_for(key, priority) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'lib/puppet/graph/prioritizer.rb', line 16 def record_priority_for(key, priority) @priority[key] = priority end |