Sha256: 520c3cbc308c4989800463c215185019380ea1a259680ee47bd23eca220cf465
Contents?: true
Size: 601 Bytes
Versions: 9
Compression:
Stored size: 601 Bytes
Contents
module Gitlab module Triage module CommandBuilders class BaseCommandBuilder def initialize(items) @items = [items].flatten @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 content_string @items.map do |item| format_item(item) end.join(separator) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems