Sha256: 170871a9f1a3c68269c4927fbea2bd13e4207a1402b3fd3801e2bf3da079560e

Contents?: true

Size: 391 Bytes

Versions: 92

Compression:

Stored size: 391 Bytes

Contents

class Array
  # remove all auto generated entries
  def strip_auto_entries
    keep=Array.new
	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]))
	   keep << e if e.kind_of?(String) && !e.include?('{')
	 end
	}
	self.clear
	keep.each{|e| self << e}
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
dev-1.0.247 lib/dev/Array.rb
dev-1.0.246 lib/dev/Array.rb
dev-1.0.245 lib/dev/Array.rb
dev-1.0.244 lib/dev/Array.rb
dev-1.0.243 lib/dev/Array.rb
dev-1.0.242 lib/dev/Array.rb
dev-1.0.241 lib/dev/Array.rb
dev-1.0.240 lib/dev/Array.rb
dev-1.0.239 lib/dev/Array.rb
dev-1.0.238 lib/dev/Array.rb
dev-1.0.237 lib/dev/Array.rb
dev-1.0.236 lib/dev/Array.rb
dev-1.0.235 lib/dev/Array.rb
dev-1.0.233 lib/dev/Array.rb
dev-1.0.232 lib/dev/Array.rb
dev-1.0.231 lib/dev/Array.rb
dev-1.0.230 lib/dev/Array.rb
dev-1.0.229 lib/dev/Array.rb
dev-1.0.228 lib/dev/Array.rb
dev-1.0.227 lib/dev/Array.rb