Class: LetsencryptWebfaction::LoggerOutput
- Inherits:
-
Object
- Object
- LetsencryptWebfaction::LoggerOutput
- Defined in:
- lib/letsencrypt_webfaction/logger_output.rb
Instance Attribute Summary collapse
-
#quiet ⇒ Object
Returns the value of attribute quiet.
Instance Method Summary collapse
-
#initialize(quiet: false) ⇒ LoggerOutput
constructor
A new instance of LoggerOutput.
- #puts(msg) ⇒ Object
Constructor Details
#initialize(quiet: false) ⇒ LoggerOutput
Returns a new instance of LoggerOutput.
4 5 6 |
# File 'lib/letsencrypt_webfaction/logger_output.rb', line 4 def initialize(quiet: false) @quiet = quiet end |
Instance Attribute Details
#quiet ⇒ Object
Returns the value of attribute quiet.
3 4 5 |
# File 'lib/letsencrypt_webfaction/logger_output.rb', line 3 def quiet @quiet end |
Instance Method Details
#puts(msg) ⇒ Object
8 9 10 |
# File 'lib/letsencrypt_webfaction/logger_output.rb', line 8 def puts(msg) Kernel.puts msg unless @quiet end |