# File lib/rubytorrent/typedstruct.rb, line 38
  def initialize
    @required = {}
    @label = {}
    @coerce = {}
    @field = {}
    @array = {}
    @dirty = false
    @values = {}

    yield self if block_given?

    @field.each do |f, type|
      @required[f] ||= false
      @label[f] ||= f.to_s
      @array[f] ||= false
    end
  end