orderedhash 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/orderedautohash.rb +3 -0
- metadata +1 -1
data/lib/orderedautohash.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
#
|
2
2
|
# auto vivifying ordered hash that dumps as yaml nicely
|
3
3
|
#
|
4
|
+
require 'orderedhash' unless defined? OrderedHash
|
5
|
+
|
4
6
|
class AutoOrderedHash < OrderedHash
|
5
7
|
#--{{{
|
6
8
|
def initialize(*args)
|
@@ -20,4 +22,5 @@ class AutoOrderedHash < OrderedHash
|
|
20
22
|
end
|
21
23
|
#--}}}
|
22
24
|
end # class AutoOrderedHash
|
25
|
+
|
23
26
|
OrderedAutoHash = AutoOrderedHash
|