Class: Conjoin::EnvString

Inherits:
String
  • Object
show all
Defined in:
lib/conjoin/env_string.rb

Instance Method Summary collapse

Instance Method Details

#console?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/conjoin/env_string.rb', line 13

def console?
  ENV['CONJOIN_CONSOLE'] ? true : false
end

#mounted?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/conjoin/env_string.rb', line 9

def mounted?
  defined?(::Rails) ? true : false
end