Sha256: 829ee86140db0aeb8cc0100bea833dd001ad2c889024aaa6e1529c3d28dc458b

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

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

UnitMeasurements::Temperature = UnitMeasurements.build do
  system :metric do
    primitive :K

    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

7 entries across 7 versions & 1 rubygems

Version Path
unit_measurements-3.8.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-3.7.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-3.6.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-3.5.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-3.4.1 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-3.3.0 lib/unit_measurements/unit_groups/temperature.rb
unit_measurements-3.4.0 lib/unit_measurements/unit_groups/temperature.rb