Class RubyTorrent::TypedStruct
In: lib/rubytorrent/typedstruct.rb
Parent: Object

type-checking struct meant for easy translation from and to bencoded dicts.

Methods

Attributes

dirty  [RW] 
fields  [R] 

Public Class methods

Public Instance methods

given a Hash from a bencoded dict, parses it according to the rules you‘ve set up with field, required, label, etc.

[Validate]