Sha256: a0f11a628a36e87930b0049c3e4d45955561a832b79c23681d81330bf58f7f2c

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true
require 'cucumber/core/ast/names'
require 'cucumber/core/ast/location'
require 'cucumber/core/ast/describes_itself'

module Cucumber
  module Core
    module Ast
      class ScenarioOutline
        include Names
        include HasLocation
        include DescribesItself

        MissingExamples = Class.new(StandardError)

        attr_reader :comments, :tags, :keyword,
                    :steps, :examples_tables, :line
        private :line

        def initialize(location, comments, tags, keyword, name, description, steps, examples)
          @location          = location
          @comments          = comments
          @tags              = tags
          @keyword           = keyword
          @name              = name
          @description       = description
          @steps             = steps
          @examples_tables   = examples
        end

        private

        def children
          @steps + @examples_tables
        end

        def description_for_visitors
          :scenario_outline
        end

      end

    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/ast/scenario_outline.rb
cucumber-core-3.2.1 lib/cucumber/core/ast/scenario_outline.rb
cucumber-core-3.2.0 lib/cucumber/core/ast/scenario_outline.rb
cucumber-core-3.1.0 lib/cucumber/core/ast/scenario_outline.rb
cucumber-core-3.0.0 lib/cucumber/core/ast/scenario_outline.rb
cucumber-core-3.0.0.pre.2 lib/cucumber/core/ast/scenario_outline.rb
cucumber-core-2.0.0 lib/cucumber/core/ast/scenario_outline.rb