Module: RubyTorrent::HashAddition

Defined in:
lib/rubytorrent/tracker.rb

Instance Method Summary collapse

Instance Method Details

#+(o) ⇒ Object



21
22
23
24
25
# File 'lib/rubytorrent/tracker.rb', line 21

def +(o)
  ret = self.dup
  o.each { |k, v| ret[k] = v }
  ret
end