aboutsummaryrefslogtreecommitdiffstats
path: root/spec/doubles/hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/doubles/hash.rb')
-rw-r--r--spec/doubles/hash.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/doubles/hash.rb b/spec/doubles/hash.rb
index 97d25742cb..32c5b98058 100644
--- a/spec/doubles/hash.rb
+++ b/spec/doubles/hash.rb
@@ -2,19 +2,19 @@ class Hash
def ordered_array
to_a.sort { |(key1, value1), (key2, value2)| key1.hash <=> key2.hash }
end
-
+
def keys
ordered_array.collect(&:first)
end
-
+
def values
ordered_array.collect { |_, v| v }
end
-
+
def each(&block)
ordered_array.each(&block)
end
-
+
def shift
returning to_a.first do |k, v|
delete(k)