module Cucumber::Core::Gherkin::Writer::HasOptionsInitializer
Attributes
name[R]
options[R]
Public Class Methods
included(base)
click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 8 def self.included(base) base.extend HasDefaultKeyword end
new(*args)
click to toggle source
# File 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
Private Instance Methods
comments_statement()
click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 25 def comments_statement @comments end
keyword()
click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 29 def keyword options.fetch(:keyword) { self.class.keyword } end
name_statement()
click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 33 def name_statement "#{keyword}: #{name}".strip end
tag_statement()
click to toggle source
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 37 def tag_statement tags end