Sha256: caf0bedad0c82bfea4b6b3345c18f745e03283c39f33206ee941a2790d30e2a8
Contents?: true
Size: 349 Bytes
Versions: 3
Compression:
Stored size: 349 Bytes
Contents
DOMAIN_SLICE = ENV['DOMAIN_SLICE'] unless defined?(DOMAIN_SLICE) module DomainSlice class << self attr_accessor :domain def exists? !@domain.nil? and @domain != '' end # Binds the DomainSlice to the environmental variable DOMAIN_SLICE def init! @domain = DOMAIN_SLICE end end end DomainSlice.init!
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bradgessler-domain_slice-0.1.0 | lib/domain_slice.rb |
bradgessler-domain_slice-0.1.1 | lib/domain_slice.rb |
bradgessler-domain_slice-0.1.2 | lib/domain_slice.rb |