Module: Hubbado::Log::Controls::Logger
- Defined in:
- lib/hubbado/log/controls/logger.rb
Class Method Summary collapse
-
.example ⇒ Object
A logger a spec assigns in place of a class's own, and then asks what the class said.
Class Method Details
.example ⇒ Object
A logger a spec assigns in place of a class's own, and then asks what the class said. Named here because the substitute is reached by building a mimic of Log::Logger, which is machinery a spec should not have to name.
10 11 12 |
# File 'lib/hubbado/log/controls/logger.rb', line 10 def self.example SubstAttr::Substitute.build(Log::Logger) end |