Sha256: b2b21f0207612a33efe910cebc9fcf576f3d4d88403642d064d3993d12fd92ff

Contents?: true

Size: 528 Bytes

Versions: 33

Compression:

Stored size: 528 Bytes

Contents

module Cucumber
  module Ast
    class Features
      include Enumerable

      attr_reader :duration

      def initialize
        @features = []
      end

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

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

      def accept(visitor)
        start = Time.now
        @features.each do |feature|
          visitor.visit_feature(feature)
        end
        @duration = Time.now - start
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.11.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.11.200907091518 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.11.3 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.11.5 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.11.6 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.11 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.7.2 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.7.3 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.7.4 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.7.5 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.8 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.9.1 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.9.2 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.9.3 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.9.4 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.9.5 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.9 lib/cucumber/ast/features.rb
aslakhellesoy-cucumber-0.3.90 lib/cucumber/ast/features.rb
jwilger-cucumber-0.3.11.200906161550 lib/cucumber/ast/features.rb