Sha256: 0d0865bbfa54088d565ca3357d989db5aad9bc6c61e426f90c967c23711c207b

Contents?: true

Size: 582 Bytes

Versions: 9

Compression:

Stored size: 582 Bytes

Contents

require 'puppet/property/list'

module Puppet
    class Property
        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

9 entries across 9 versions & 1 rubygems

Version Path
puppet-0.25.5 lib/puppet/property/ordered_list.rb
puppet-0.25.4 lib/puppet/property/ordered_list.rb
puppet-0.25.3 lib/puppet/property/ordered_list.rb
puppet-0.24.9 lib/puppet/property/ordered_list.rb
puppet-0.25.2 lib/puppet/property/ordered_list.rb
puppet-0.25.1 lib/puppet/property/ordered_list.rb
puppet-0.25.0 lib/puppet/property/ordered_list.rb
puppet-0.24.7 lib/puppet/property/ordered_list.rb
puppet-0.24.8 lib/puppet/property/ordered_list.rb