class Kelvin::Parser
- Kelvin::Parser
- Reference
- Object
Defined in:
kelvin/parser.crConstructors
Class Method Summary
-
.parse(string : String)
Returns a new Temperature for the given
string
Constructor Detail
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")