class InfoBalise
  attr_reader :balise
  
  def initialize( balise )
    @balise = balise
    @attributs = Array.new
  end

  def attributs
    @attributs.uniq
  end

  def nb_occurrences( attribut )
    @attributs.select{ |a| a == attribut }.size
  end

  def ajouter_attribut( attribut )
    @attributs.push( attribut )
  end

  def ==( o )
    @balise == o.balise()
  end
end  
