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, Examples, Feature, Gherkin, Scenario, ScenarioOutline, Step, Table

Constant Summary collapse

NEW_LINE =
''

Instance Method Summary collapse

Instance Method Details

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



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

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