123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::CLI::Command::ShowDocsUrl Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Base
Instance Chain:
self, Base
Inherits: RuboCop::CLI::Command::Base
Defined in: lib/rubocop/cli/command/show_docs_url.rb

Overview

Prints out url to documentation of provided cops or documentation base url by default.

Class Attribute Summary

Base - Inherited

Class Method Summary

Base - Inherited

Instance Attribute Summary

Base - Inherited

Instance Method Summary

Instance Method Details

#cops_array (private)

[ GitHub ]

  
# File 'lib/rubocop/cli/command/show_docs_url.rb', line 38

def cops_array
  @cops_array ||= @options[:show_docs_url]
end

#registry_hash (private)

[ GitHub ]

  
# File 'lib/rubocop/cli/command/show_docs_url.rb', line 42

def registry_hash
  @registry_hash ||= Cop::Registry.global.to_h
end

#run

[ GitHub ]

  
# File 'lib/rubocop/cli/command/show_docs_url.rb', line 18

def run
  print_documentation_url
end