Class: Bundler::GemBytes::Actions::Gemspec::DependencyNode

Inherits:
Struct
  • Object
show all
Defined in:
lib/bundler/gem_bytes/actions/gemspec/dependency_node.rb

Overview

Maps a dependency declaration to the AST that represents it

Instance Attribute Summary collapse

Instance Attribute Details

#dependencyDependency (readonly)

The components of the dependency declaration from the AST node

Examples:

dependency_node.dependency.to_a #=> [:add_dependency, 'rubocop', '~> 1.68']

Returns:



28
# File 'lib/bundler/gem_bytes/actions/gemspec/dependency_node.rb', line 28

DependencyNode = Struct.new(:node, :dependency)

#nodeParser::AST::Node (readonly)

The AST node for the dependency declaration

Examples:

dependency_node.node #=> ...

Returns:

  • (Parser::AST::Node)


28
# File 'lib/bundler/gem_bytes/actions/gemspec/dependency_node.rb', line 28

DependencyNode = Struct.new(:node, :dependency)