Sha256: 077d77a55886ff715fcba8eace953482a8b296c267dacf863864959d8b1e9199

Contents?: true

Size: 411 Bytes

Versions: 12

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

# Base class for application config classes
class ApplicationConfig < Anyway::Config
  class << self
    # Make it possible to access a singleton config instance
    # via class methods (i.e., without explictly calling `instance`)
    delegate_missing_to :instance

    private

    # Returns a singleton config instance
    def instance
      @instance ||= new
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
anyway_config-2.2.2 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.2.1 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.2.0 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.1.0 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.6 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.5 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.4 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.3 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.2 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.1 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.0 lib/generators/anyway/install/templates/application_config.rb.tt
anyway_config-2.0.0.rc1 lib/generators/anyway/install/templates/application_config.rb.tt