Sha256: 08b54abf7b5f5957e1f4a765e2614df9100826b630f99a5029516f549586ffd2
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
module MotionPrime class Env def env ENV['PRIME_ENV'] || ENV['RUBYMOTION_ENV'] || (defined?(RUBYMOTION_ENV) && RUBYMOTION_ENV) || 'development' end def to_s env end def inspect env end def ==(obj) env == obj end def method_missing(name, *args, &block) if /(.+)?$/.match(name.to_s) env == name.to_s.gsub('?', '') else false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.5.2 | motion-prime/env.rb |