Sha256: b85285a4e4fec97b90aae9eeb9a5cebefd2e2f7e86f1a98dccdeb1798b51bdd5

Contents?: true

Size: 377 Bytes

Versions: 21

Compression:

Stored size: 377 Bytes

Contents

module Midori
  # @return [String] midori environment
  def self.env
    ENV['MIDORI_ENV'] || 'development'
  end
end

class String
  # @return [TrueClass | FalseClass] if string is equal to production
  def production?
    self == 'production'
  end

  #@return [TrueClass | FalseClass] if string is equal to development
  def development?
    self == 'development'
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
midori.rb-0.9.0 lib/midori/env.rb
midori.rb-0.8.0 lib/midori/env.rb
midori.rb-0.7.1 lib/midori/env.rb
midori.rb-0.7.0 lib/midori/env.rb
midori.rb-0.6.0 lib/midori/env.rb
midori.rb-0.5.4 lib/midori/env.rb
midori.rb-0.5.3.1 lib/midori/env.rb
midori.rb-0.5.3 lib/midori/env.rb
midori.rb-0.5.2 lib/midori/env.rb
midori.rb-0.5.1 lib/midori/env.rb
midori.rb-0.5.0 lib/midori/env.rb
midori.rb-0.4.4.1 lib/midori/env.rb
midori.rb-0.4.4 lib/midori/env.rb
midori.rb-0.4.3 lib/midori/env.rb
em-midori-0.4.3 lib/midori/env.rb
em-midori-0.4.2.1 lib/midori/env.rb
em-midori-0.4.2 lib/midori/env.rb
em-midori-0.4.1.1 lib/midori/env.rb
em-midori-0.4.1 lib/midori/env.rb
em-midori-0.4.0 lib/midori/env.rb