Sha256: 9e28e18b67ab52555762ad626cf5130e783d89e4f25d51e14712eb49a486b4c5

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

require_relative 'healthcheck_endpoint/core'

module HealthcheckEndpoint
  class << self
    def configuration(&block)
      @configuration ||= begin
        return unless block

        HealthcheckEndpoint::Configuration.new(&block)
      end
    end

    def configure(&block)
      return configuration {} unless block # rubocop:disable Lint/EmptyBlock

      configuration(&block)
    end

    def reset_configuration!
      @configuration = nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
healthcheck_endpoint-1.0.0 lib/healthcheck_endpoint.rb