Sha256: ac6740229209c021efebeb716b2e24e728cf39547610da464b72f15d5dd57d4a

Contents?: true

Size: 260 Bytes

Versions: 3

Compression:

Stored size: 260 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

3 entries across 3 versions & 1 rubygems

Version Path
bencode-1.0.0 lib/bencode/core_ext/io.rb
bencode-0.8.2 lib/bencode/core_ext/io.rb
bencode-0.8.1 lib/bencode/core_ext/io.rb