Method: Hanami::CLI::Generators::Version.version

Defined in:
lib/hanami/cli/generators/version.rb

.versionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.0.0



8
9
10
11
12
# File 'lib/hanami/cli/generators/version.rb', line 8

def self.version
  return Hanami::VERSION if Hanami.const_defined?(:VERSION)

  Hanami::CLI::VERSION
end