Class: Hash
Overview
The Hash class
Direct Known Subclasses
Constant Summary collapse
- Empty =
EmptyImmutableEnumerable.new(Hash)
- MethodBooleanPattern =
%r{\?$}.freeze
- MethodWriterPattern =
%r{=$}.freeze
Instance Method Summary collapse
Instance Method Details
#sort ⇒ Object
538 539 540 541 |
# File 'lib/runtime/mixins.rb', line 538 def sort keys.sort.each { |k| self[k] = self.delete(k) } self end |