Sha256: f288edea5db97442f10bdb0083f0c2c84d3ed14cbd9f0a2f38048ac266cb0a1d

Contents?: true

Size: 171 Bytes

Versions: 6

Compression:

Stored size: 171 Bytes

Contents

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

    def rack_env
      ENV["RACK_ENV"]
    end

    extend self
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
true-web-0.1.5 lib/true-web/env_methods.rb
true-web-0.1.4 lib/true-web/env_methods.rb
true-web-0.1.3 lib/true-web/env_methods.rb
true-web-0.1.2 lib/true-web/env_methods.rb
true-web-0.1.1 lib/true-web/env_methods.rb
true-web-0.1.0 lib/true-web/env_methods.rb