class

Mint::Installer::Semver

Inherits Reference < Object

Constructors

new(major : Int32 = 0, minor : Int32 = 0, patch : Int32 = 0)
Source

Class methods

parse(string : String)
Source
parse?(string : String)
Source

Instance methods

<(other) : Bool
Source
==(other : self)

Returns true if this reference is the same as other. Invokes same?.

Source
>(other) : Bool
Source
>=(other) : Bool
Source
major
Source
minor
Source
next_patch
Source
patch
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source