Module: Bencoding::String

Defined in:
lib/bencoding/string.rb

Instance Method Summary collapse

Instance Method Details

#to_bencodingObject



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

def to_bencoding
  length.to_s+":"+self
end