Method: Fluent::SystemConfig#dup

Defined in:
lib/fluent/system_config.rb

#dupObject



152
153
154
155
156
157
158
# File 'lib/fluent/system_config.rb', line 152

def dup
  s = SystemConfig.new
  SYSTEM_CONFIG_PARAMETERS.each do |param|
    s.__send__("#{param}=", instance_variable_get("@#{param}"))
  end
  s
end