Sha256: a90f438a9e2cb598301fea940679cfe22038a17140308fc6597e2c2550eb03ac

Contents?: true

Size: 210 Bytes

Versions: 1

Compression:

Stored size: 210 Bytes

Contents

class Hash
  def symbolize_keys!
    keys.each do |key|
      self[begin
             key.to_sym
           rescue StandardError
             key
           end || key] = delete(key)
    end
    self
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mojo_magick-0.5.7 lib/initializers/hash.rb