Sha256: d6ad7a35a442f0afee972fa44f3318f403e83a2de9910f0f984d4f36f11c8c7c
Contents?: true
Size: 843 Bytes
Versions: 120
Compression:
Stored size: 843 Bytes
Contents
require_relative '../../puppet/property/list' module Puppet class Property # 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}. # class OrderedList < List def add_should_with_current(should, current) if current.is_a?(Array) #tricky trick #Preserve all the current items in the list #but move them to the back of the line should = should + (current - should) end should end def dearrayify(array) array.join(delimiter) end end end end
Version data entries
120 entries across 120 versions & 1 rubygems