class Cucumber::Core::Gherkin::Writer::DocString
Attributes
Public Class Methods
Source
# File lib/cucumber/core/gherkin/writer.rb, line 209 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 214 def build(source) source + statements end
Private Instance Methods
Source
# File lib/cucumber/core/gherkin/writer.rb, line 223 def doc_string_statement [ %["""#{content_type}], strings, '"""' ] end
Source
# File lib/cucumber/core/gherkin/writer.rb, line 219 def statements prepare_statements doc_string_statement end