Sha256: 04cbbd0d690003a68e4af99b1ce44b5115299a622b3bfc30e26a77a20210deb3

Contents?: true

Size: 474 Bytes

Versions: 74

Compression:

Stored size: 474 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

74 entries across 74 versions & 4 rubygems

Version Path
puppet-parse-0.1.4 lib/vendor/puppet/property/ordered_list.rb
puppet-parse-0.1.3 lib/vendor/puppet/property/ordered_list.rb
puppet-parse-0.1.2 lib/vendor/puppet/property/ordered_list.rb
puppet-parse-0.1.1 lib/vendor/puppet/property/ordered_list.rb
puppet-2.7.26 lib/puppet/property/ordered_list.rb
puppet-2.7.25 lib/puppet/property/ordered_list.rb
puppet-2.7.24 lib/puppet/property/ordered_list.rb
puppet-2.7.23 lib/puppet/property/ordered_list.rb
puppet-2.7.22 lib/puppet/property/ordered_list.rb
puppet-parse-0.1.0 lib/vendor/puppet/property/ordered_list.rb
puppet-parse-0.0.6 lib/vendor/puppet/property/ordered_list.rb
puppet-2.7.21 lib/puppet/property/ordered_list.rb
puppet-2.6.18 lib/puppet/property/ordered_list.rb
puppet-parse-0.0.5 lib/vendor/puppet/property/ordered_list.rb
puppet-parse-0.0.4 lib/vendor/puppet/property/ordered_list.rb
puppet-3.0.2 lib/puppet/property/ordered_list.rb
puppet-3.0.2.rc3 lib/puppet/property/ordered_list.rb
puppet-3.0.2.rc2 lib/puppet/property/ordered_list.rb
puppet-3.0.2.rc1 lib/puppet/property/ordered_list.rb
puppet-parse-0.0.2 lib/vendor/puppet/property/ordered_list.rb