class Cucumber::Ast::Tags
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)
def self.strip_prefix(tag_name) tag_name =~ /^@(.*)/ ? $1 : tag_name end
def accept(visitor)
def accept(visitor) @tag_names.each do |tag_name| visitor.visit_tag_name(tag_name) end end
def accept_hook?(hook)
def accept_hook?(hook) hook.matches_tag_names?(@tag_names) 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