Class: Kiba::Extend::Command::Fcar::Chute

Inherits:
Object
  • Object
show all
Defined in:
lib/kiba/extend/command/fcar/chute.rb

Class Method Summary collapse

Class Method Details

.callObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/kiba/extend/command/fcar/chute.rb', line 8

def self.call
  Kiba::Extend::Fcar.chute
    .map do |mod, comment|
      formatted_comment = if comment.empty?
        nil
      else
        "  #{comment}"
      end
      [mod, formatted_comment].compact
        .join("\n")
    end.join("\n")
end