class Cucumber::Formatter::DurationExtractor
Attributes
Public Class Methods
Source
# File lib/cucumber/formatter/duration_extractor.rb, line 8 def initialize(result) @result_duration = 0 result.describe_to(self) end
Public Instance Methods
Source
# File lib/cucumber/formatter/duration_extractor.rb, line 17 def ambiguous(*) end
Source
# File lib/cucumber/formatter/duration_extractor.rb, line 27 def duration(duration, *) duration.tap { |dur| @result_duration = dur.nanoseconds / 10**9.0 } end
Source
# File lib/cucumber/formatter/duration_extractor.rb, line 25 def exception(*) end
Source
# File lib/cucumber/formatter/duration_extractor.rb, line 19 def undefined(*) end