Module: PositiveGroupSupport::HashExt
- Defined in:
- lib/positive_group_support/hash_ext.rb
Overview
ハッシュ (Hash) のクラスに組み込むモジュール
Instance Method Summary collapse
Instance Method Details
#sort_keys ⇒ Object
4 5 6 7 8 9 10 |
# 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 |