Module: Bencoding::Array

Defined in:
lib/bencoding/array.rb

Instance Method Summary collapse

Instance Method Details

#to_bencodingObject



5
6
7
8
# File 'lib/bencoding/array.rb', line 5

def to_bencoding
  return '' if empty?
  "l"+collect{|item|item.to_bencoding}.join+"e"
end