Sha256: e064a5af87e2a0a6681b6d605922f4a45ececc3af91a94785e9801dd9a01e23b
Contents?: true
Size: 630 Bytes
Versions: 62
Compression:
Stored size: 630 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) feature.features = self @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 end end end
Version data entries
62 entries across 60 versions & 11 rubygems