lib/cucumber/parser/feature.tt in aslakhellesoy-cucumber-0.2.3.4 vs lib/cucumber/parser/feature.tt in aslakhellesoy-cucumber-0.3.0

- old
+ new

@@ -44,18 +44,18 @@ def at_line?(line) ts.elements.detect{|e| e.tag.line == line} end def has_tags?(tags) - tag_names.detect{|tag_name| tags.index(tag_name)} + (tag_names & tags).any? end def build Ast::Tags.new(ts.line, tag_names) end def tag_names - ts.elements.map{|e| e.tag.tag_name.text_value} + @tag_names ||= ts.elements.map{|e| e.tag.tag_name.text_value} end } end rule tag