Sha256: 6c69edffb95a64198494f18dc57f9333b0e5f11b2b9de5c850158564bccc1848

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

class IO
  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

2 entries across 2 versions & 1 rubygems

Version Path
bencode-0.7.0 lib/bencode/core_ext/io.rb
bencode-0.6.0 lib/bencode/io.rb