class Cucumber::Core::Gherkin::Writer::DocString
Attributes
Public Class Methods
Source
# File lib/cucumber/core/gherkin/writer.rb, line 216 def initialize(string, content_type) @strings = string.split("\n").map(&:strip) @content_type = content_type end
Public Instance Methods
Source
# File lib/cucumber/core/gherkin/writer.rb, line 221 def build(source) source + statements end
Private Instance Methods
Source
# File lib/cucumber/core/gherkin/writer.rb, line 231 def doc_string_statement [ %("""#{content_type}), strings, '"""' ] end
Source
# File lib/cucumber/core/gherkin/writer.rb, line 227 def statements prepare_statements doc_string_statement end