Ameba::Version - ameba 1.7.0

# class Ameba::Version

- Ameba::Version
- Reference
- Object

##
Defined in:

ameba/version.cr

##
Constant Summary

INSTANCE = `begin version = SemanticVersion.parse(VERSION) if !version.build && GIT_SHA version = version.copy_with(build: "git.commit.#{GIT_SHA}") end new(version) end`

  Cached version object.

##
Constructors

- .new(version : SemanticVersion)

##
Instance Method Summary

- #dev? : Bool

  Returns `true` if the current `#version` is a development version.

- #release? : Bool

  Returns `true` if the current `#version` is a release version.

- #simple : SemanticVersion

  Returns the `#version` without build metadata.

- #to_s(io : IO) : Nil

  Appends the version string to the given io.

- #version : SemanticVersion

  Returns the current version as a `SemanticVersion` object.

##
Constructor Detail

def self.new(version : SemanticVersion) #

##
Instance Method Detail

def dev? : Bool #

Returns `true` if the current `#version` is a development version.

def release? : Bool #

Returns `true` if the current `#version` is a release version.

def simple : SemanticVersion #

Returns the `#version` without build metadata.

def to_s(io : IO) : Nil #

Appends the version string to the given io.

def version : SemanticVersion #

Returns the current version as a `SemanticVersion` object.