def after_feature_element(cuke_feature_element)
      if cuke_feature_element.is_a?(Cucumber::Formatter::LegacyApi::Ast::Scenario)
        after_scenario(cuke_feature_element)
      elsif cuke_feature_element.is_a?(Cucumber::Formatter::LegacyApi::Ast::ScenarioOutline)
        after_scenario_outline(cuke_feature_element)
      else
        raise("unsupported feature element `#{cuke_feature_element.class.name}`")
      end

      @exception = nil
      @scenario = nil
      @scenario_outline = nil
    end
def after_feature_element(cuke_feature_element)
      if cuke_feature_element.is_a?(Cucumber::Formatter::LegacyApi::Ast::Scenario)
        after_scenario(cuke_feature_element)
      elsif cuke_feature_element.is_a?(Cucumber::Formatter::LegacyApi::Ast::ScenarioOutline)
        after_scenario_outline(cuke_feature_element)
      else
        raise("unsupported feature element `#{cuke_feature_element.class.name}`")
      end

      @exception = nil
      @scenario = nil
      @scenario_outline = nil
    end
this method gets called after a scenario or scenario outline
 we dispatch to our own more specific methods