Sha256: d239993198898b61ea487c6ef0bb6007484414fd443fd06fb5fd7ee2ad05e79d
Contents?: true
Size: 552 Bytes
Versions: 25
Compression:
Stored size: 552 Bytes
Contents
require 'gherkin/tag_expression' module Cucumber module Ast class Tags #:nodoc: attr_reader :tags def initialize(line, tags) @line, @tags = line, tags end def accept(visitor) return if Cucumber.wants_to_quit @tags.each do |tag| visitor.visit_tag_name(tag.name) end end def accept_hook?(hook) Gherkin::TagExpression.new(hook.tag_expressions).evaluate(@tags) end def to_sexp @tags.map{|tag| [:tag, tag.name]} end end end end
Version data entries
25 entries across 23 versions & 2 rubygems