# File lib/rubytorrent/metainfo.rb, line 27
  def initialize(dict=nil)
    @s = TypedStruct.new do |s|
      s.field :length => Integer, :md5sum => String, :sha1 => String,
              :path => String
      s.array :path
      s.required :length, :path
    end

    @dict = dict
    unless dict.nil?
      @s.parse dict
      check
    end
  end