Module: RuboCop::Version

Defined in:
lib/rubocop/version.rb

Overview

This module holds the RuboCop version information.

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.version(debug = false) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/rubocop/version.rb', line 13

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