module PositiveGroupSupport::HashExt

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

Public Instance Methods

sort_keys() click to toggle source
# File lib/positive_group_support/hash_ext.rb, line 4
def sort_keys
  h = ::Hash.new
  self.keys.sort.each do | key |
    h[ key ] = self[ key ]
  end
  h
end