class Backup::Logger::Console::Options
Attributes
quiet[R]
Disables all console output.
This may also be set on the command line using --quiet
.
If --no-quiet
is used on the command line, console output will
be enabled and any setting here will be ignored.
@param [Boolean, nil] @return [Boolean, nil] Default: false
Public Class Methods
new()
click to toggle source
# File lib/backup/logger/console.rb, line 18 def initialize @quiet = false end
Public Instance Methods
enabled?()
click to toggle source
# File lib/backup/logger/console.rb, line 22 def enabled? !quiet end
quiet=(val)
click to toggle source
# File lib/backup/logger/console.rb, line 26 def quiet=(val) @quiet = val unless quiet.nil? end