class Bindgen::FindPath::GenericVersion

Overview

Implements generic version comparator. Imported from https://gist.github.com/ZaWertun/5ff96c43bcf87219bb2344633fe3d136

Included Modules

Defined in:

bindgen/find_path/generic_version.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(parts : Array(String | Int32)) #

[View source]
def self.new(*parts) #

[View source]

Class Method Detail

def self.parse(str : String) #

[View source]

Instance Method Detail

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

[View source]
def parts : Array(String) #

[View source]
def to_s(io : IO) #
Description copied from class Reference

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>

[View source]