Charyf/charyf-core

View on GitHub
lib/charyf/version.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Charyf
  # Returns the version of the currently loaded Charyf as a <tt>Gem::Version</tt>
  def self.gem_version
    Gem::Version.new Charyf::VERSION::STRING
  end

  def self.version
    Charyf::VERSION::STRING
  end

  module VERSION
    MAJOR = 0
    MINOR = 2
    TINY  = 10
    PRE   = nil

    STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
  end
end