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