# File lib/cucumber/core/gherkin/writer/helpers.rb, line 7 def self.included(base) base.extend HasDefaultKeyword end
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 14 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
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 24 def comments_statement @comments end
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 28 def keyword options.fetch(:keyword) { self.class.keyword } end
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 32 def name_statement "#{keyword}: #{name}".strip end
# File lib/cucumber/core/gherkin/writer/helpers.rb, line 36 def tag_statement tags end