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