Sha256: 41c586f747b5906ed84eb5f7989b2bb15246f8eb30ed9520094453fecda4d21d

Contents?: true

Size: 195 Bytes

Versions: 3

Compression:

Stored size: 195 Bytes

Contents

module Rico
  class SortedMap < Map
    protected

    def compute_add(items)
      Hash[super(items).sort]
    end

    def compute_remove(items)
      Hash[super(items).sort]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rico-0.5.0 lib/rico/sorted_map.rb
rico-0.4.0 lib/rico/sorted_map.rb
rico-0.3.0 lib/rico/sorted_map.rb