class Cucumber::Ast::Tags

:nodoc:
This gets stored internally as ["invoice", "release_2"]
@invoice @release_2
Holds the names of tags parsed from a feature file:

def self.strip_prefix(tag_name)

:nodoc:

This gets stored internally as ["invoice", "release_2"]

@invoice @release_2

Holds the names of tags parsed from a feature file:
def self.strip_prefix(tag_name)
  tag_name =~ /^@(.*)/ ? $1 : tag_name
end

def accept(visitor)

def accept(visitor)
  return if $cucumber_interrupted
  @tag_names.each do |tag_name|
    visitor.visit_tag_name(tag_name)
  end
end

def accept_hook?(hook)

def accept_hook?(hook)
  hook.tag_names.empty? || (hook.tag_names.map{|tag| Ast::Tags.strip_prefix(tag)} & @tag_names).any?
end

def count(tag)

def count(tag)
  if @tag_names.respond_to?(:count)
    @tag_names.count(tag) # 1.9
  else
    @tag_names.select{|t| t == tag}.length  # 1.8
  end
end

def initialize(line, tag_names)

def initialize(line, tag_names)
  @line, @tag_names = line, tag_names
end

def to_sexp

def to_sexp
  @tag_names.map{|tag_name| [:tag, tag_name]}
end