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