Sha256: d5b4bb74d4f4bca4fe84732301d525134de366b30e008660b4f48c023c3068f5
Contents?: true
Size: 663 Bytes
Versions: 22
Compression:
Stored size: 663 Bytes
Contents
module Gitlab module Triage module CommandBuilders class BaseCommandBuilder def initialize(items) @items = Array.wrap(items) @items.delete('') end def build_command if @items.any? [slash_command_string, content_string].compact.join(separator) else "" end end private def separator ' ' end def slash_command_string nil end def content_string @items.map do |item| format_item(item) end.join(separator) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems