# File lib/gherkin/listener/formatter_listener.rb, line 99 def comment(comment) @comments << comment end
# File lib/gherkin/listener/formatter_listener.rb, line 115 def examples(name) @examples_id = "#{@feature_element_id};#{id(name)}" @row_index = 0 yield @comments, @tags, @examples_id @comments, @tags = [], [] end
# File lib/gherkin/listener/formatter_listener.rb, line 103 def feature(name) @feature_id = id(name) yield @comments, @tags, @feature_id @comments, @tags = [], [] end
# File lib/gherkin/listener/formatter_listener.rb, line 109 def feature_element(name) @feature_element_id = "#{@feature_id};#{id(name)}" yield @comments, @tags, @feature_element_id @comments, @tags = [], [] end
# File lib/gherkin/listener/formatter_listener.rb, line 138 def id(name) (name || '').gsub(/[\s_]/, '-').downcase end
# File lib/gherkin/listener/formatter_listener.rb, line 128 def row @row_index += 1 yield @comments, defined?(@examples_id) ? "#{@examples_id};#{@row_index}" : :undefined_examples_id @comments = [] end
Generated with the Darkfish Rdoc Generator 2.