class Cucumber::Formatter::Pretty

def feature_has_background?

def feature_has_background?
  feature_children = gherkin_document.feature.children
  return false if feature_children.empty?
  !feature_children.first.background.nil?
end