class Pretty::Version
- Pretty::Version
- Reference
- Object
Included Modules
- Enumerable(Int32)
Defined in:
pretty/version.crConstructors
Instance Method Summary
- #<(other : Version)
- #<=(other : Version)
- #<=>(other : Version)
- #[](*args, **options)
- #[](*args, **options, &)
- #[]?(*args, **options)
- #[]?(*args, **options, &)
- #build : String
- #build=(build : String)
- #each(*args, **options)
- #each(*args, **options, &)
- #last(*args, **options)
- #last(*args, **options, &)
-
#major
handy accessors
- #major?
- #minor
- #minor?
- #rev
- #rev?
- #sep : String
- #sep=(sep : String)
- #size(*args, **options)
- #size(*args, **options, &)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
-
#values : Array(Int32)
Pretty::Version
holds version information asArray(Int32)
. -
#values=(values : Array(Int32))
Pretty::Version
holds version information asArray(Int32)
.
Constructor Detail
Instance Method Detail
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>
def values : Array(Int32)
#
Pretty::Version
holds version information as Array(Int32)
.
Pretty::Version.parse("0.27.2")[1,2] # => [27,2]
Pretty::Version.parse("0.27.2").minor # => 27
Pretty.version("0.27.2") # shortcut for `Pretty::Version.parse`
def values=(values : Array(Int32))
#
Pretty::Version
holds version information as Array(Int32)
.
Pretty::Version.parse("0.27.2")[1,2] # => [27,2]
Pretty::Version.parse("0.27.2").minor # => 27
Pretty.version("0.27.2") # shortcut for `Pretty::Version.parse`