Module: RuboCop::Version

Defined in:
lib/rubocop/version.rb

Overview

This module holds the RuboCop version information.

Constant Summary collapse

STRING =
'0.50.0'.freeze
MSG =
'%s (using Parser %s, running on %s %s %s)'.freeze

Class Method Summary collapse

Class Method Details

.version(debug = false) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/rubocop/version.rb', line 10

def self.version(debug = false)
  if debug
    format(MSG, STRING, Parser::VERSION,
           RUBY_ENGINE, RUBY_VERSION, RUBY_PLATFORM)
  else
    STRING
  end
end