Sha256: bc252a7525cf986ee522b465a8cf0e0f3b2e9b94744bfd3f9f22dd2f11c631fd

Contents?: true

Size: 349 Bytes

Versions: 11

Compression:

Stored size: 349 Bytes

Contents

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

UnitMeasurements::MagneticInduction = UnitMeasurements.build do
  primitive "T"

  system :metric do
    si_unit "T", aliases: ["tesla", "teslas"]
  end

  system :centimetre_gram_second do
    unit "G", value: "1e-4 T", aliases: ["Gs", "gauss"]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unit_measurements-5.16.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.15.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.14.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.13.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.12.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.11.1 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.11.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.10.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.9.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.8.0 lib/unit_measurements/unit_groups/magnetic_induction.rb
unit_measurements-5.7.0 lib/unit_measurements/unit_groups/magnetic_induction.rb