123456789_123456789_123456789_123456789_123456789_

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

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

Constructor Details

.new(env) ⇒ ShowDocsUrl

[ GitHub ]

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

def initialize(env)
  super

  @config = @config_store.for(PathUtil.pwd)
end

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

#run

[ GitHub ]

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

def run
  print_documentation_url
end