Class: GemWhy::Formatters::DeepFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- GemWhy::Formatters::DeepFormatter
- Defined in:
- lib/gem_why/formatters/deep_formatter.rb
Overview
Formats deep dependency chains output
Instance Attribute Summary
Attributes inherited from BaseFormatter
Instance Method Summary collapse
-
#format(gem_name, chains) ⇒ void
Formats and displays deep dependency chains.
Methods inherited from BaseFormatter
Constructor Details
This class inherits a constructor from GemWhy::Formatters::BaseFormatter
Instance Method Details
#format(gem_name, chains) ⇒ void
This method returns an undefined value.
Formats and displays deep dependency chains
13 14 15 16 17 18 19 |
# File 'lib/gem_why/formatters/deep_formatter.rb', line 13 def format(gem_name, chains) return say "No gems depend on #{colorize(gem_name, :yellow)}" if chains.empty? say "Dependency chains leading to #{colorize(gem_name, :cyan)}:\n\n" print_dependency_chains(chains, gem_name) print_deep_summary(chains, gem_name) end |