Class: Hippo::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/hippo/environment.rb

Instance Method Summary collapse

Instance Method Details

#development?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/hippo/environment.rb', line 7

def development?
    Hippo.config.environment == :development
end

#production?Boolean

Returns:

  • (Boolean)

10
11
12
# File 'lib/hippo/environment.rb', line 10

def production?
    Hippo.config.environment == :production
end

#test?Boolean

Returns:

  • (Boolean)

4
5
6
# File 'lib/hippo/environment.rb', line 4

def test?
    Hippo.config.environment == :test
end

#to_sObject


13
14
15
# File 'lib/hippo/environment.rb', line 13

def to_s
    Hippo.config.environment.to_s
end