Method: LogStash::Setting::SplittableStringArray#coerce
- Defined in:
- lib/logstash/settings.rb
#coerce(value) ⇒ Object
597 598 599 600 601 602 603 604 605 |
# File 'lib/logstash/settings.rb', line 597 def coerce(value) if value.is_a?(Array) value elsif value.nil? [] else value.split(@token).map(&:strip) end end |