Sha256: 26b7419854e5ecd4ea13b71cbf866a17e4aa516447dbffbbd2603c4323f407fe

Contents?: true

Size: 207 Bytes

Versions: 10

Compression:

Stored size: 207 Bytes

Contents

class Object
  #
  # Raises an exception. Subclasses of Object must themselves
  # define meaningful #bencode methods.
  def bencode
    raise BEncode::EncodeError, "cannot bencode #{self.class}"
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
bencode-1.0.0 lib/bencode/core_ext/object.rb
bencode-0.8.2 lib/bencode/core_ext/object.rb
dasch-bencode-0.5.0 lib/bencode/encode/object.rb
mikehodgson-bencode-0.5.0 lib/bencode/encode/object.rb
bencode-0.8.1 lib/bencode/core_ext/object.rb
bencode-0.8.0 lib/bencode/core_ext/object.rb
bencode-0.7.0 lib/bencode/core_ext/object.rb
bencode-0.6.0 lib/bencode/encode/object.rb
bencode-0.5.1 lib/bencode/encode/object.rb
bencode-0.5.0 lib/bencode/encode/object.rb