Sha256: 7b4278faa8bff788a11c86e2c09f2256dd379ac0e0e23def9a3af818c97446fb

Contents?: true

Size: 358 Bytes

Versions: 33

Compression:

Stored size: 358 Bytes

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

UnitMeasurements::Temperature = UnitMeasurements.build do
  primitive "K"

  system :metric do
    si_unit "K", aliases: ["kelvin", "kelvins"]
  end

  system :english_engineering do
    unit "°R", value: "5/9 K", aliases: ["R", "°Ra", "Ra", "rankine"]
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
unit_measurements-5.15.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.14.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.13.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.12.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.11.1 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.11.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.10.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.9.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.8.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.7.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.6.1 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.6.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.5.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.4.1 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.4.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.3.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.2.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.1.1 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.1.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-5.0.0 lib/unit_measurements/unit_groups/temperature.rb