Sha256: 424c91aedda0deb45af96def3c4d7da3e3ae5d1a5ea0e79e4130848c9a98511f

Contents?: true

Size: 458 Bytes

Versions: 15

Compression:

Stored size: 458 Bytes

Contents

# setup for napa
# require the files that are required before everything else in napa
# useful if you want to use any variables/methods defined here without loading the rest of napa immediately
require 'active_support'

module Napa
  class << self
    def env
      @_env ||= ActiveSupport::StringInquirer.new(ENV['RACK_ENV'] || 'development')
    end

    def env=(environment)
      @_env = ActiveSupport::StringInquirer.new(environment)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
napa-0.3.0 lib/napa/setup.rb
napa-0.2.1 lib/napa/setup.rb
napa-0.2.0 lib/napa/setup.rb
napa-0.1.29 lib/napa/setup.rb
napa-0.1.28 lib/napa/setup.rb
napa-0.1.26 lib/napa/setup.rb
napa-0.1.25 lib/napa/setup.rb
napa-0.1.24 lib/napa/setup.rb
napa-0.1.23 lib/napa/setup.rb
napa-0.1.22 lib/napa/setup.rb
napa-0.1.21 lib/napa/setup.rb
napa-0.1.20 lib/napa/setup.rb
napa-0.1.19 lib/napa/setup.rb
napa-0.1.18 lib/napa/setup.rb
napa-0.1.17 lib/setup.rb