struct Zap::Utils::Semver::Version

Included Modules

Defined in:

utils/semver/version.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

or(other : T) : T | self forall T or, pipe(&) pipe

Constructor Detail

def self.new(major : UInt128, minor : UInt128, patch : UInt128, prerelease : Prerelease | Nil, build_metadata : String | Nil) #

[View source]
def self.new(major : UInt128 = 0, minor : UInt128 = 0, patch : UInt128 = 0, prerelease = nil, build_metadata : Nil | String = nil) #

[View source]
def self.new(partial : Regex::MatchData) #

[View source]
def self.new(partial : Partial) #

[View source]

Class Method Detail

def self.parse(version_str : String) #

[View source]

Instance Method Detail

def <=>(other : self) : Int32 #

[View source]
def build_metadata : String | Nil #

def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def copy_with(major _major = @major, minor _minor = @minor, patch _patch = @patch, prerelease _prerelease = @prerelease, build_metadata _build_metadata = @build_metadata) #

[View source]
def increment(field : Symbol, *, by : Int32 = 1) : self #

[View source]
def major : UInt128 #

def max? #

[View source]
def minor : UInt128 #

def patch : UInt128 #

def prerelease : Prerelease | Nil #

def prerelease? #

[View source]
def same_version_numbers?(other : self) #

[View source]
def to_s(io) #

[View source]
def zero? #

[View source]