class Puppet::Property::OrderedList
This subclass of {Puppet::Property} manages an ordered list of values. The maintained order is the order defined by the 'current' set of values (i.e. the original order is not disrupted). Any additions are added after the current values in their given order).
For an unordered list see {Puppet::Property::List}.
Public Instance Methods
add_should_with_current(should, current)
click to toggle source
# File lib/puppet/property/ordered_list.rb 15 def add_should_with_current(should, current) 16 if current.is_a?(Array) 17 #tricky trick 18 #Preserve all the current items in the list 19 #but move them to the back of the line 20 should = should + (current - should) 21 end 22 should 23 end
dearrayify(array)
click to toggle source
# File lib/puppet/property/ordered_list.rb 25 def dearrayify(array) 26 array.join(delimiter) 27 end