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