Module: Bridgetown::Commands::Summarizable

Included in:
Apply, Build, Clean, Configure, Console, Doctor, Esbuild, New, Start
Defined in:
bridgetown-core/lib/bridgetown-core/commands/concerns/summarizable.rb

Instance Method Summary collapse

Instance Method Details

#summary(description = nil) ⇒ Object



6
7
8
9
10
# File 'bridgetown-core/lib/bridgetown-core/commands/concerns/summarizable.rb', line 6

def summary(description = nil)
  return @desc.split("\n").last.strip unless description

  desc "Description:\n  #{description}"
end