Module: RuboCop::Version

Defined in:
lib/rubocop/version.rb

Overview

This module holds the RuboCop version information.

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.version(debug = false) ⇒ Object



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

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