Sha256: 96f95e81915c9659e493bbf479f243c05192a26f24f87ed3cda56284b436fda8

Contents?: true

Size: 180 Bytes

Versions: 15

Compression:

Stored size: 180 Bytes

Contents

class Hash
  def with_clean_keys
    self.inject({}) do |mem, (key, value)|
      clean_key = key.to_s.gsub(/-/,"_").to_sym
      mem[clean_key] = value
      mem
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
jenkins-maestrodev-0.6.9 lib/jenkins/core_ext/hash.rb
jenkins-0.6.8 lib/jenkins/core_ext/hash.rb
jenkins-0.6.6 lib/jenkins/core_ext/hash.rb
jenkins-0.6.5 lib/jenkins/core_ext/hash.rb
akqa-jenkins-0.6.4.1 lib/jenkins/core_ext/hash.rb
jenkins-0.6.4 lib/jenkins/core_ext/hash.rb
jenkins-0.6.3 lib/jenkins/core_ext/hash.rb
jenkins-0.6.2 lib/jenkins/core_ext/hash.rb
jenkins-0.6.1 lib/jenkins/core_ext/hash.rb
jenkins-0.6.0 lib/jenkins/core_ext/hash.rb
hudson-0.5.0 lib/hudson/core_ext/hash.rb
hudson-0.3.1 lib/hudson/core_ext/hash.rb
hudson-0.3.0 lib/hudson/core_ext/hash.rb
hudson-0.3.0.beta.19 lib/hudson/core_ext/hash.rb
hudson-0.3.0.beta.18 lib/hudson/core_ext/hash.rb