Sha256: 33d4bd1086a7c6058fff05b839566b7af482f447ad0b7734febe3d824e2578e9

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

class Array
  # remove all auto generated entries
  def strip_auto_entries
    keep=Array.new
    puts_debug "Array.strip_auto_entries"
	self.each { |e| 
	 if(!e.nil?)
	   h=nil
	   h=e if e.kind_of?(Hash)
	   h=Dev::Environment.s_to_hash(e)
	   keep << e if(!h.nil? && (!h.has_key?(:auto) || !h[:auto]))
	 end
	}
	self.clear
	keep.each{|e| self << e}
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dev-1.0.148 lib/dev/Array.rb
dev-1.0.147 lib/dev/Array.rb