8 lines
94 B
Ruby
8 lines
94 B
Ruby
unless Array.respond_to?(:to_h)
|
|
class Array
|
|
def to_h
|
|
Hash[self]
|
|
end
|
|
end
|
|
end
|