Sha256: d71cacf2dab59a6f4f4028e26a15a059a7b9868d7d4922b128b1123ddb5dea5d

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module KeycloakRack
  # Adds `config` as a property without using {KeycloakRack::Import},
  # for instances where dependency injection doesn't make sense.
  #
  # @!visibility private
  module WithConfig
    # @!attribute [r] config
    # @return [KeycloakRack::Config]
    def config
      KeycloakRack::Container["keycloak-rack.config"]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keycloak_rack-1.1.1 lib/keycloak_rack/with_config.rb
keycloak_rack-1.1.0 lib/keycloak_rack/with_config.rb
keycloak_rack-1.0.0 lib/keycloak_rack/with_config.rb