Class: GemCP::Tools::DependencyGraph
- Defined in:
- lib/gemcp/tools/dependency_graph.rb
Overview
Build an exploratory dependency graph from RubyGems metadata.
Instance Method Summary collapse
-
#call(name:, version: nil, platform: nil, depth: 1, include_development: false) ⇒ Hash
MCP response.
Methods inherited from Base
Constructor Details
This class inherits a constructor from GemCP::Tools::Base
Instance Method Details
#call(name:, version: nil, platform: nil, depth: 1, include_development: false) ⇒ Hash
Returns MCP response.
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/gemcp/tools/dependency_graph.rb', line 26 def call(name:, version: nil, platform: nil, depth: 1, include_development: false) result = with_errors do GemCP::DependencyGraph.new(client: client).build( name: name, version: version, platform: platform, depth: depth, include_development: include_development ) end render(result) end |