Sha256: b563a5be56fd3dad2a73261aec9cda7237d0eae1807918672d283e29cb334f70
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 Bytes
Contents
module PrivatePlease class Recorder def self.instance @@__instance ||= new(Candidates.instance) end # only used by tests #TODO : refactor to remove .instance and .reset def self.reset_before_new_test @@__instance = nil end def initialize(storage) @storage = storage end def record_candidate(self_class, name) @storage.record_candidate(self_class, name) # do more. ex: logging, .. end def record_outside_call(self_class, name) @storage.record_outside_call(self_class, name) # do more. ex: logging, .. end def record_inside_call(self_class, name) @storage.record_inside_call(self_class, name) # do more. ex: logging, .. end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
private_please-0.0.2 | lib/private_please/recorder.rb |
private_please-0.0.1 | lib/private_please/recorder.rb |