Sha256: 140ee20a4f59d719af90b83aec3570335672c1d673271145c4b85589c50f0963

Contents?: true

Size: 295 Bytes

Versions: 31

Compression:

Stored size: 295 Bytes

Contents

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

module UnitMeasurements
  class UnitAlreadyDefinedError < BaseError
    attr_reader :unit

    def initialize(unit)
      @unit = unit

      super("Unit already defined: '#{unit}'.")
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
unit_measurements-4.9.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.8.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.7.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.6.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.5.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.4.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.3.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.2.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.1.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-4.0.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.8.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.7.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.6.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.5.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.4.1 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.3.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.4.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.2.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.1.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-3.0.0 lib/unit_measurements/errors/unit_already_defined_error.rb