# File lib/factory_girl/definition_proxy.rb, line 35
    def add_attribute(name, value = nil, &block)
      raise AttributeDefinitionError, "Both value and block given" if value && block_given?

      declaration = if block_given?
        Declaration::Dynamic.new(name, @ignore, block)
      else
        Declaration::Static.new(name, value, @ignore)
      end

      @definition.declare_attribute(declaration)
    end