Class: RuboCop::CLI::Command::Version

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/cli/command/version.rb

Overview

Display version.

Instance Attribute Summary

Attributes inherited from Base

#env

Instance Method Summary collapse

Methods inherited from Base

by_command_name, inherited, #initialize

Constructor Details

This class inherits a constructor from RuboCop::CLI::Command::Base

Instance Method Details

#runObject


10
11
12
13
# File 'lib/rubocop/cli/command/version.rb', line 10

def run
  puts RuboCop::Version.version(false) if @options[:version]
  puts RuboCop::Version.version(true) if @options[:verbose_version]
end