Sha256: 5d64cce8425f1c8655f8cb44ae4acdcbe46d5788d52f734fac9abfef11b354aa

Contents?: true

Size: 731 Bytes

Versions: 6

Compression:

Stored size: 731 Bytes

Contents

require 'cucumber/initializer'
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

        include Cucumber.initializer(:gherkin_statement, :language, :location, :comments, :keyword, :title, :description, :raw_steps)

        attr_accessor :feature
        attr_accessor :comments, :keyword, :location
        attr_reader   :gherkin_statement

        def children
          raw_steps
        end

        private

        def description_for_visitors
          :background
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cucumber-core-1.0.0.beta.4 lib/cucumber/core/ast/background.rb
cucumber-core-1.0.0.beta.3 lib/cucumber/core/ast/background.rb
cucumber-core-1.0.0.beta.2 lib/cucumber/core/ast/background.rb
cucumber-core-1.0.0.beta.1 lib/cucumber/core/ast/background.rb
cucumber-core-0.2.0 lib/cucumber/core/ast/background.rb
cucumber-core-0.1.0 lib/cucumber/core/ast/background.rb