1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-02-01 01:37:12 +00:00

Add method reference to docs for Message#initialize

This commit is contained in:
Holger Just 2018-07-17 22:51:30 +02:00
parent f97bcf2334
commit 78f3e037e7

View File

@ -37,7 +37,7 @@ module Rackstash
include Rackstash::Encoder::Helper::Timestamp
# @param tagged [Array<#to_s>] An array of field names whose values are
# added in front of each message line on encode
# added in front of each message line on {#encode}
def initialize(tagged: [])
@tagged_fields = Array(tagged).map(&:to_s)
end