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

Included in:
Background, Examples, Feature, Rule, Scenario, ScenarioOutline, Step
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/writer/helpers.rb

Defined Under Namespace

Modules: HasDefaultKeyword

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/writer/helpers.rb', line 8

def self.included(base)
  base.extend HasDefaultKeyword
end

Instance Method Details

#initialize(*args) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/writer/helpers.rb', line 15

def initialize(*args)
  @comments = args.shift if args.first.is_a?(Array)
  @comments ||= []
  @options = args.pop if args.last.is_a?(Hash)
  @options ||= {}
  @name = args.first
end