Module: BEncode::Dictionary
- Defined in:
- lib/bencode/dictionary.rb
Defined Under Namespace
Class Method Summary collapse
-
.register(type) ⇒ Object
Registers a class as an object that can be converted into a bencoded dictionary.
Class Method Details
.register(type) ⇒ Object
34 35 36 |
# File 'lib/bencode/dictionary.rb', line 34 def self.register(type) type.send :include, Generic::InstanceMethods end |