Sha256: c4bf23a12948c4ba6753dce6c665c62b4cc6fa2f7184c6d7637f755def853382
Contents?: true
Size: 371 Bytes
Versions: 2
Compression:
Stored size: 371 Bytes
Contents
module PrivatePlease class Configuration def self.instance @@__instance ||= new end # only used by tests #TODO : refactor to remove .instance and .reset def self.reset_before_new_test @@__instance = nil end attr_reader :active def initialize @active end def activate(flag) @active = flag end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
private_please-0.0.2 | lib/private_please/configuration.rb |
private_please-0.0.1 | lib/private_please/configuration.rb |