Class: RuboCop::Cop::FormulaCop::FormulaNodes Private

Inherits:
T::Struct
  • Object
show all
Defined in:
rubocops/extend/formula_cop.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node:, class_node:, parent_class_node:, body_node:) ⇒ void

Parameters:

  • node (RuboCop::AST::ClassNode)
  • class_node (RuboCop::AST::ConstNode)
  • parent_class_node (RuboCop::AST::ConstNode)
  • body_node (RuboCop::AST::Node)


# File ''

prop :node, RuboCop::AST::ClassNode
prop :class_node, RuboCop::AST::ConstNode
prop :parent_class_node, RuboCop::AST::ConstNode
prop :body_node, RuboCop::AST::Node

Instance Attribute Details

#body_nodeRuboCop::AST::Node

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop body_node.

Returns:



# File ''

prop :body_node, RuboCop::AST::Node

#class_nodeRuboCop::AST::ConstNode

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop class_node.

Returns:

  • (RuboCop::AST::ConstNode)


# File ''

prop :class_node, RuboCop::AST::ConstNode

#nodeRuboCop::AST::ClassNode

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop node.

Returns:

  • (RuboCop::AST::ClassNode)


# File ''

prop :node, RuboCop::AST::ClassNode

#parent_class_nodeRuboCop::AST::ConstNode

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of prop parent_class_node.

Returns:

  • (RuboCop::AST::ConstNode)


# File ''

prop :parent_class_node, RuboCop::AST::ConstNode