Module: Fluent::Compat::PropagateDefault

Included in:
BufferedOutput, ObjectBufferedOutput, TimeSlicedOutput
Defined in:
lib/fluent/compat/propagate_default.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object

This mixin is to prepend to 3rd party plugins of v0.12 APIs. 3rd party plugins may override default values of some parameters, like ‘buffer_type`. But default values of such parameters will NOT used, but defaults of <buffer>@type</buffer> will be used in fact. It should bring troubles. This mixin defines Class method .config_param and .config_set_default (which should be used by extend) to propagate changes of default values to subsections.



28
29
30
# File 'lib/fluent/compat/propagate_default.rb', line 28

def self.included(mod)
  mod.extend(ClassMethods)
end