Sha256: febb4dd7cbcfb5902118bfb35bf7eff45813f88e350a5e8eef7a0d730385be3e
Contents?: true
Size: 254 Bytes
Versions: 2
Compression:
Stored size: 254 Bytes
Contents
require "mockable/version" module Mockable VARNAME = 'MOCKABLE' def self.mocked? ENV[VARNAME] ? true : false end def self.enable ENV[VARNAME] = '1' unless mocked? end def self.disable ENV.delete(VARNAME) if mocked? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mockable-0.1.1 | lib/mockable.rb |
mockable-0.1.0 | lib/mockable.rb |