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.203 lib/dev/Array.rb
dev-1.0.202 lib/dev/Array.rb
dev-1.0.201 lib/dev/Array.rb
dev-1.0.200 lib/dev/Array.rb
dev-1.0.199 lib/dev/Array.rb
dev-1.0.198 lib/dev/Array.rb
dev-1.0.197 lib/dev/Array.rb
dev-1.0.196 lib/dev/Array.rb
dev-1.0.195 lib/dev/Array.rb
dev-1.0.194 lib/dev/Array.rb
dev-1.0.193 lib/dev/Array.rb
dev-1.0.192 lib/dev/Array.rb
dev-1.0.191 lib/dev/Array.rb
dev-1.0.190 lib/dev/Array.rb
dev-1.0.189 lib/dev/Array.rb
dev-1.0.188 lib/dev/Array.rb
dev-1.0.187 lib/dev/Array.rb
dev-1.0.186 lib/dev/Array.rb
dev-1.0.185 lib/dev/Array.rb
dev-1.0.184 lib/dev/Array.rb