Sha256: 31bab6bb8cedc7dd6858a7f5b4238344f8b518d055eacc0730bc8e483eee44d9

Contents?: true

Size: 383 Bytes

Versions: 4

Compression:

Stored size: 383 Bytes

Contents

module AppConfigLoader
  class Config
    attr_accessor :const_name, :env, :domain, :local_overrides

    def config_paths
      @config_paths ||= []
    end

    def use_domain
      @use_domain === true
    end
    alias_method :use_domain?, :use_domain

    def use_domain=(use)
      @use_domain = !!use
    end

    def domain
      use_domain? ? @domain : nil
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
app_config_loader-1.0.7 lib/app_config_loader/config.rb
app_config_loader-1.0.6 lib/app_config_loader/config.rb
app_config_loader-1.0.4 lib/app_config_loader/config.rb
app_config_loader-1.0.3 lib/app_config_loader/config.rb