Sha256: 61efeafcd65d24a7f563559a1652118b42fed25948449ded8aef5de346299995

Contents?: true

Size: 237 Bytes

Versions: 4

Compression:

Stored size: 237 Bytes

Contents

class IO
  def self.bdecode(filename)
    open(filename, 'r').bdecode
  end

  def self.bencode(filename)
    open(filename, 'r').bencode
  end

  def bdecode
    read.chomp.bdecode
  end

  def bencode
    read.chomp.bencode
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
dasch-bencode-0.5.0 lib/bencode/io.rb
mikehodgson-bencode-0.5.0 lib/bencode/io.rb
bencode-0.5.1 lib/bencode/io.rb
bencode-0.5.0 lib/bencode/io.rb