Class: LogStash::Util::DefaultsPrinter
- Inherits:
-
Object
- Object
- LogStash::Util::DefaultsPrinter
- Defined in:
- lib/logstash/util/defaults_printer.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(settings) ⇒ DefaultsPrinter
constructor
A new instance of DefaultsPrinter.
- #print ⇒ Object
Constructor Details
#initialize(settings) ⇒ DefaultsPrinter
Returns a new instance of DefaultsPrinter.
13 14 15 16 |
# File 'lib/logstash/util/defaults_printer.rb', line 13 def initialize(settings) @settings = settings @printers = [workers] end |
Class Method Details
.print(settings) ⇒ Object
9 10 11 |
# File 'lib/logstash/util/defaults_printer.rb', line 9 def self.print(settings) new(settings).print end |
Instance Method Details
#print ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/logstash/util/defaults_printer.rb', line 18 def print collector = [] @printers.each do |printer| printer.visit(collector) end "Settings: " + collector.join(', ') end |