Sha256: 4f8e7d8af9ec5ad55001d50ec6613cb118b1221ead69ec9f4cbbc489eadeef0f

Contents?: true

Size: 229 Bytes

Versions: 19

Compression:

Stored size: 229 Bytes

Contents

module Guignol
  def env
    @env ||= Env.new
  end

  private

  class Env
    def initialize
      @env = ENV['GUIGNOL_ENV'] || 'development'
    end

    def test?
      @env == 'test'
    end
  end

  Guignol.extend(self)
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
guignol-0.3.16 lib/guignol/env.rb
guignol-0.3.15 lib/guignol/env.rb
guignol-0.3.14 lib/guignol/env.rb
guignol-0.3.13 lib/guignol/env.rb
guignol-0.3.12 lib/guignol/env.rb
guignol-0.3.10 lib/guignol/env.rb
guignol-0.3.9 lib/guignol/env.rb
guignol-0.3.8 lib/guignol/env.rb
guignol-0.3.7 lib/guignol/env.rb
guignol-0.3.6.2 lib/guignol/env.rb
guignol-0.3.6.1 lib/guignol/env.rb
guignol-0.3.6 lib/guignol/env.rb
guignol-0.3.5.1 lib/guignol/env.rb
guignol-0.3.5 lib/guignol/env.rb
guignol-0.3.4 lib/guignol/env.rb
guignol-0.3.3 lib/guignol/env.rb
guignol-0.3.2 lib/guignol/env.rb
guignol-0.3.1 lib/guignol/env.rb
guignol-0.3.0 lib/guignol/env.rb