Module: Enviro::Environment::ClassMethods

Defined in:
lib/enviro/environment.rb

Instance Method Summary collapse

Instance Method Details

#env?(value) ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/enviro/environment.rb', line 18

def env?(value)
  self.environment == value.to_sym
end

#environmentObject Also known as: env



9
10
11
# File 'lib/enviro/environment.rb', line 9

def environment
  @environment ||= _setup_environment
end

#environment=(value) ⇒ Object



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

def environment=(value)
  @environment = value
end