Class: RuboCop::Cop::Metrics::Utils::CodeLengthCalculator

Inherits:
Object
  • Object
show all
Defined in:
rubocops.rbi

Instance Method Summary collapse

Constructor Details

#initialize(node, processed_source, count_comments: false, foldable_types: []) ⇒ void

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.

Parameters:

  • node (RuboCop::AST::Node)
  • processed_source (RuboCop::AST::ProcessedSource)
  • count_comments (Boolean) (defaults to: false)
  • foldable_types (Array<Symbol>) (defaults to: [])


25
# File 'rubocops.rbi', line 25

def initialize(node, processed_source, count_comments: false, foldable_types: []); end

Instance Method Details

#calculate ⇒ Integer

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:



28
# File 'rubocops.rbi', line 28

def calculate; end