Class Kramdown::Utils::OrderedHash
In: lib/kramdown/utils/ordered_hash.rb
Parent: Object

A partial hash implementation which preserves the insertion order of the keys.

Note that this class is only used on Ruby 1.8 since the built-in Hash on Ruby 1.9 automatically preserves the insertion order. However, to remain compatibility only the methods defined in this class may be used when working with OrderedHash on Ruby 1.9.

Methods

[]   []=   delete   each   has_key?   merge!   new  

Included Modules

Enumerable

Public Class methods

Initialize the OrderedHash object.

Public Instance methods

Return the value for the key.

Set the value for the key to val.

Delete the key.

Iterate over the stored keys in insertion order.

Return true if the hash contains the key.

[Validate]