class Kelvin::Parser

Defined in:

kelvin/parser.cr

Constructors

Class Method Summary

Constructor Detail

def self.new(string : String) #

[View source]

Class Method Detail

def self.parse(string : String) #

Returns a new Temperature for the given string

For example:

Kelvin::Parser.parse("22.3 °C")
Kelvin::Parser.parse("82.10 °F")
Kelvin::Parser.parse("273.15 K")

[View source]