Add ruby-version as a comment
This commit is contained in:
parent
7e5e24e922
commit
37b1bc17a0
@ -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]
|
||||
|
Reference in New Issue
Block a user