Module: RubyTorrent::HashMapHash
- Defined in:
- lib/rubytorrent/typedstruct.rb
Instance Method Summary collapse
Instance Method Details
#map_hash ⇒ Object
25 26 27 |
# File 'lib/rubytorrent/typedstruct.rb', line 25 def map_hash a = map { |k, v| yield k, v }.extend(ArrayToH).to_h end |