Sha256: d7f9f033c49cf2b0b43d2d753c2443909979c129539778330430e91ceed90f88
Contents?: true
Size: 707 Bytes
Versions: 24
Compression:
Stored size: 707 Bytes
Contents
module Cucumber module Ast class Features #:nodoc: include Enumerable attr_reader :duration def initialize @features = [] end def [](index) @features[index] end def each(&proc) @features.each(&proc) end def add_feature(feature) @features << feature end def accept(visitor) return if Cucumber.wants_to_quit start = Time.now self.each do |feature| visitor.visit_feature(feature) end @duration = Time.now - start end def step_count @features.inject(0) { |total, feature| total += feature.step_count } end end end end
Version data entries
24 entries across 22 versions & 2 rubygems