module Cucumber::Core::Gherkin::Writer::HasDescription

Private Instance Methods

description() click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 128
def description
  options.fetch(:description, '').split("\n").map(&:strip)
end
description_statement() click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 132
def description_statement
  description.map { |s| indent(s, 2) } unless description.empty?
end