Sha256: f1f7a182dbcd070dca7607ddc8a58ae0517361c18a5dfb63b56704bb88d8cbef

Contents?: true

Size: 184 Bytes

Versions: 3

Compression:

Stored size: 184 Bytes

Contents

module Rfm
  class CaseInsensitiveHash < Hash

    def []=(key, value)
      super(key.to_s.downcase, value)
    end

    def [](key)
      super(key.to_s.downcase)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ginjo-rfm-3.0.12 lib/rfm/utilities/case_insensitive_hash.rb
ginjo-rfm-3.0.11 lib/rfm/utilities/case_insensitive_hash.rb
ginjo-rfm-3.0.10 lib/rfm/utilities/case_insensitive_hash.rb