Method: String#bdecode

Defined in:
lib/bencode/decode.rb

#bdecodeObject

Bdecodes the String object and returns the data serialized through bencoding.

"li1ei2ei3ee".bdecode   #=> [1, 2, 3]


45
46
47
# File 'lib/bencode/decode.rb', line 45

def bdecode
  BEncode.load(self)
end