Exception: BencodeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bencode.rb

Instance Method Summary collapse

Constructor Details

#initialize(object_class = nil) ⇒ BencodeError

:nodoc:



127
128
129
# File 'lib/bencode.rb', line 127

def initialize(object_class = nil) # :nodoc:
  @object_class = object_class
end

Instance Method Details

#to_sObject

:nodoc:



131
132
133
# File 'lib/bencode.rb', line 131

def to_s # :nodoc:
  "could not bencode #{@object_class}"
end