# File lib/rubytorrent/typedstruct.rb, line 19 def to_h inject({}) { |h, (k, v)| h[k] = v; h } # found this neat trick on the internet end