Skip to content

Commit 52b8acf

Browse files
committed
Define Hash.ruby2_keywords_hash singleton method
1 parent 51c47c0 commit 52b8acf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/ruby2_keywords.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,10 @@ def ruby2_keywords_hash?(hash)
2828
false
2929
end
3030
end
31+
32+
unless method_defined?(:ruby2_keywords_hash)
33+
def ruby2_keywords_hash(hash)
34+
hash.dup
35+
end
36+
end
3137
end

0 commit comments

Comments
 (0)