Add ruby-version as a comment

This commit is contained in:
Lars Kanis 2022-12-03 12:23:26 +01:00
parent 7e5e24e922
commit 37b1bc17a0

View File

@ -1,6 +1,7 @@
#!/usr/bin/env ruby
class Hash
# transform_keys was added in ruby-2.5
def transform_keys
map do |k, v|
[yield(k), v]