module Cucumber::Core::Gherkin::Writer::AcceptsComments
def comment(line)
def comment(line) comment_lines << "# #{line}" end
def comment_lines
def comment_lines @comment_lines ||= [] end
def slurp_comments
def slurp_comments # TODO: I can't think of another way to handle this? # When we use the comments, we need to reset the collection # for the next element... slurped_comments = comment_lines.dup @comment_lines = nil slurped_comments end