Class: Bundler::GemBytes::Actions::Gemspec::AttributeNode

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

Overview

Maps a dependency declaration to the AST that represents it

Instance Attribute Summary collapse

Instance Attribute Details

#attributeDependency (readonly)

The components of the attribute from the AST node

Examples:

attribute_node.attribute.to_a #=> ["description", [:str, "My deescription"]]

Returns:



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

AttributeNode = Struct.new(:node, :attribute)

#nodeParser::AST::Node (readonly)

The AST node for the attribute

Examples:

attribute_node.node #=> ...

Returns:

  • (Parser::AST::Node)


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

AttributeNode = Struct.new(:node, :attribute)