Class: Doing::Version

Inherits:
Object show all
Defined in:
lib/doing/changelog/version.rb

Overview

Semantic versioning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ Version

Returns a new instance of Version.

Instance Attribute Details

#majObject (readonly)

Returns the value of attribute maj.

#minObject (readonly)

Returns the value of attribute min.

#patchObject (readonly)

Returns the value of attribute patch.

Instance Method Details

#compare(other, comp, inclusive: false) ⇒ Object

#to_sObject

#version_to_a(string) ⇒ Object

#wild?(val) ⇒ Boolean

Returns:

  • (Boolean)