Sha256: 3f847db613407c6ba53e8b4b74faa41afcae86589b1f9aee3d114ba6e524e540
Contents?: true
Size: 548 Bytes
Versions: 26
Compression:
Stored size: 548 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).eval(@tags) end def to_sexp @tags.map{|tag| [:tag, tag.name]} end end end end
Version data entries
26 entries across 24 versions & 8 rubygems