lib/ariadne/static/generate_statuses.rb



# frozen_string_literal: true

# :nocov:
module Ariadne
  module Static
    # :nodoc:
    module GenerateStatuses
      class << self
        def call
          Ariadne::Component.descendants.sort_by(&:name).each_with_object({}) do |component, mem|
            mem[component.to_s] = component.status.to_s
          end
        end
      end
    end
  end
end