module Rbencode
A bencoding module to serialize to and from the bit torrent bencoding spec
Constants
- VERSION
Public Class Methods
decode(data)
click to toggle source
# File lib/rbencode.rb, line 15 def self.decode(data) decoder = Decoder.new(data) decoder.decode end
encode(data)
click to toggle source
# File lib/rbencode.rb, line 11 def self.encode(data) Encoder.encode(data) end