Module: Rbencode

Defined in:
lib/rbencode.rb,
lib/rbencode/version.rb

Overview

A bencoding module to serialize to and from the bit torrent bencoding spec

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.decode(data) ⇒ Object



15
16
17
18
# File 'lib/rbencode.rb', line 15

def self.decode(data)
  decoder = Decoder.new(data)
  decoder.decode
end

.encode(data) ⇒ Object



11
12
13
# File 'lib/rbencode.rb', line 11

def self.encode(data)
  Encoder.encode(data)
end