class

Bindgen::FindPath::GenericVersion

Inherits Comparable < Reference < Object

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

Constructors

new(parts : Array(String | Int32))
Source
new(*parts)
Source

Class methods

parse(str : String)
Source

Instance methods

<=>(other : self) : Int32
Source
parts
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