Module: Cucumber::Core::Gherkin::Writer

Defined in:
lib/cucumber/core/gherkin/writer.rb,
lib/cucumber/core/gherkin/writer/helpers.rb

Defined Under Namespace

Modules: AcceptsComments, HasDescription, HasElements, HasOptionsInitializer, HasRows, Indentation Classes: Background, DocString, Example, Examples, Feature, Gherkin, Rule, Scenario, ScenarioOutline, Step, Table

Constant Summary collapse

NEW_LINE =
''

Instance Method Summary collapse

Instance Method Details

#gherkin(uri = nil, &source) ⇒ Object



11
12
13
14
15
# File 'lib/cucumber/core/gherkin/writer.rb', line 11

def gherkin(uri = nil, &source)
  uri ||= 'features/test.feature'
  builder = Gherkin.new(uri, &source)
  builder.build
end