Module: GemWhy

Defined in:
lib/gem_why/version.rb,
lib/gem_why/analyzer.rb,
lib/gem_why/dependent.rb,
lib/gem_why/tree_builder.rb,
lib/gem_why/json_outputter.rb,
lib/gem_why/formatters/base_formatter.rb,
lib/gem_why/formatters/deep_formatter.rb,
lib/gem_why/formatters/tree_formatter.rb,
lib/gem_why/formatters/direct_formatter.rb

Defined Under Namespace

Modules: Formatters Classes: Analyzer, JSONOutputter, TreeBuilder

Constant Summary collapse

VERSION =
"0.0.2"
Dependent =

Represents a gem that depends on a target gem

Data.define(:name, :version, :requirement) do
  # Returns the dependent as a hash
  # @return [Hash] hash representation
  def to_h
    { name:, version:, requirement: }
  end
end