Sha256: dc6cee2eb61cdfc47f82d73733fd947d8eea2061c439059a1c543ed051b7bb65

Contents?: true

Size: 877 Bytes

Versions: 7

Compression:

Stored size: 877 Bytes

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 Background
        include Names
        include HasLocation
        include DescribesItself

        def initialize(location, comments, keyword, name, description, raw_steps)
          @location = location
          @comments = comments
          @keyword = keyword
          @name = name
          @description = description
          @raw_steps = raw_steps
        end

        attr_reader :description, :raw_steps
        private     :raw_steps

        attr_reader :comments, :keyword, :location

        def children
          raw_steps
        end

        private

        def description_for_visitors
          :background
        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/background.rb
cucumber-core-3.2.1 lib/cucumber/core/ast/background.rb
cucumber-core-3.2.0 lib/cucumber/core/ast/background.rb
cucumber-core-3.1.0 lib/cucumber/core/ast/background.rb
cucumber-core-3.0.0 lib/cucumber/core/ast/background.rb
cucumber-core-3.0.0.pre.2 lib/cucumber/core/ast/background.rb
cucumber-core-2.0.0 lib/cucumber/core/ast/background.rb