Skip to content

Commit

Permalink
Fix Ruby < 2.1 compatibility of IO::Hash#to_h
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbuenemann committed Oct 30, 2017
1 parent 4b4e8cc commit d72ffc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xlsxtream/io/hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def [](path)
end

def to_h
@hash.keys.map {|path| [path, fetch(path)] }.to_h
::Hash[@hash.keys.map {|path| [path, fetch(path)] }]
end
end
end
Expand Down

0 comments on commit d72ffc1

Please sign in to comment.