module Cucumber::Core::Gherkin::Writer::AcceptsComments

Public Instance Methods

comment(line) click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 57
def comment(line)
  comment_lines << "# #{line}"
end
comment_lines() click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 61
def comment_lines
  @comment_lines ||= []
end
slurp_comments() click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 65
def slurp_comments
  comment_lines.tap { @comment_lines = nil }
end