Sha256: e6c523b791fb715239ae76ac51dd3620aa23469b25e14108a159e47989315f05

Contents?: true

Size: 437 Bytes

Versions: 29

Compression:

Stored size: 437 Bytes

Contents

module Cucumber
  module Ast
    class Features
      include Enumerable

      def initialize
        @features = []
      end

      def each(&proc)
        @features.each(&proc)
      end

      def add_feature(feature)
        feature.features = self
        @features << feature
      end

      def accept(visitor)
        @features.each do |feature|
          visitor.visit_feature(feature)
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.2.3.4 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.0.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.0 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.1.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.2 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.3.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.3.2 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.3.3 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.3.4 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.3.5 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.3.6 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.3 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.4 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.5 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.6.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.7.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.7 lib/cucumber/ast/features.rb
cavalle-cucumber-0.2.3.3.1 lib/cucumber/ast/features.rb
cavalle-cucumber-0.2.3.3.2 lib/cucumber/ast/features.rb