Object
# File lib/gherkin/tag_expression.rb, line 9 def initialize(tag_expressions) @ands = [] @limits = {} tag_expressions.each do |expr| add(expr.strip.split(/\s*,\s*/)) end end
# File lib/gherkin/tag_expression.rb, line 17 def empty? @ands.empty? end
# File lib/gherkin/tag_expression.rb, line 21 def eval(tags) return true if @ands.flatten.empty? vars = Hash[*tags.map{|tag| [tag.name, true]}.flatten] !!Kernel.eval(ruby_expression) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.