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 172 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 177 def build(source) source + statements end
Private Instance Methods
doc_string_statement()
click to toggle source
# File lib/cucumber/core/gherkin/writer.rb, line 186 def doc_string_statement [ %Q["""#{content_type}], strings, '"""' ] end
statements()
click to toggle source
# File lib/cucumber/core/gherkin/writer.rb, line 182 def statements prepare_statements doc_string_statement end