Sha256: 072578e475fdd29cc93cff6909e17a3eeca1a190c34969f58eedad772a069aeb

Contents?: true

Size: 226 Bytes

Versions: 1

Compression:

Stored size: 226 Bytes

Contents

# ハッシュ (Hash) のクラスに組み込むモジュール
module PositiveGroupSupport::HashExt

  def sort_keys
    h = ::Hash.new
    self.keys.sort.each do | key |
      h[ key ] = self[ key ]
    end
    h
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
positive_group_support-0.1.2 lib/positive_group_support/hash_ext.rb