Class: GitPrepareBranch::Logger
- Inherits:
-
Object
- Object
- GitPrepareBranch::Logger
- Defined in:
- lib/git-prepare-branch/logger.rb
Instance Method Summary collapse
-
#initialize(stream: $stdout) ⇒ Logger
constructor
A new instance of Logger.
- #log(message) ⇒ Object
Constructor Details
#initialize(stream: $stdout) ⇒ Logger
Returns a new instance of Logger.
3 4 5 |
# File 'lib/git-prepare-branch/logger.rb', line 3 def initialize(stream: $stdout) @stream = stream end |
Instance Method Details
#log(message) ⇒ Object
7 8 9 10 |
# File 'lib/git-prepare-branch/logger.rb', line 7 def log stream << () stream.flush end |