Class: RuboCop::CLI::Command::Version
- Defined in:
- lib/rubocop/cli/command/version.rb
Overview
Display version.
Instance Attribute Summary
Attributes inherited from Base
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
#run ⇒ Object
10 11 12 13 |
# File 'lib/rubocop/cli/command/version.rb', line 10 def run puts RuboCop::Version.version(false) if [:version] puts RuboCop::Version.version(true) if [:verbose_version] end |