Sha256: 30dfecedd8c69042e092c9d7e2f5b3fa894741b41e54d8c1d759516e83ea9364
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
require 'bencode/parseio' class IO include BEncode::ParseIO def self.bdecode(filename) open(filename, 'rb') {|io| io.bdecode} end def self.bencode(filename) open(filename, 'rb') {|io| io.bencode} end def bdecode read.chomp.bdecode end def bencode read.chomp.bencode end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bencode-0.8.0 | lib/bencode/core_ext/io.rb |