Sha256: ace505c3516a89aa0d32bc880631cdf831c6e66a6714277d607e4083989e18c7
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
require 'gherkin/tag_expression' module Lucid module AST class Tags #:nodoc: attr_reader :tags def initialize(line, tags) @line, @tags = line, tags end def accept(visitor) return if Lucid.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lucid-0.0.6 | lib/lucid/ast/tags.rb |
lucid-0.0.5 | lib/lucid/ast/tags.rb |