Sha256: 316869b503257c20ad9c99f90e6e4de66153be403af51a0aab451cdbd7c020b1

Contents?: true

Size: 566 Bytes

Versions: 34

Compression:

Stored size: 566 Bytes

Contents

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

UnitMeasurements::MagneticFlux = UnitMeasurements.build do
  primitive "Wb"

  system :metric do
    si_unit "Wb", aliases: ["weber", "webers"]

    unit "T·m²", value: "1 Wb", aliases: ["T*m^2", "tesla-square meter", "tesla-square metre"]
  end

  system :centimetre_gram_second do
    unit "Mx", value: "1e-8 Wb", aliases: ["maxwell", "maxwells"]
    unit "G·cm²", value: "1e-8 Wb", aliases: ["G*cm^2", "gauss-square centimeter", "gauss-square centimetre"]
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
unit_measurements-5.0.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.12.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.11.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.10.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.9.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.8.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.7.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.6.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.5.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.4.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.3.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.2.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.1.0 lib/unit_measurements/unit_groups/magnetic_flux.rb
unit_measurements-4.0.0 lib/unit_measurements/unit_groups/magnetic_flux.rb