Sha256: c2c285ef1545edb39ed2cd14fe6341c547180517a561c5556c20d0d558016162

Contents?: true

Size: 172 Bytes

Versions: 3

Compression:

Stored size: 172 Bytes

Contents

module BangBang
  module EnvMethods
    def development?
      rack_env == "development"
    end

    def rack_env
      ENV["RACK_ENV"]
    end

    extend self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bang-bang-0.2.1 lib/bang-bang/env_methods.rb
bang-bang-0.2.0 lib/bang-bang/env_methods.rb
bang-bang-0.1.6 lib/bang-bang/env_methods.rb