Sha256: 14fd4e83abaa4c20da1499d520c8cc0edc09021a920638ddeda075c71030a600

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 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

5 entries across 5 versions & 1 rubygems

Version Path
unit_measurements-1.5.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-1.4.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-1.3.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-1.2.0 lib/unit_measurements/errors/unit_already_defined_error.rb
unit_measurements-1.1.0 lib/unit_measurements/errors/unit_already_defined_error.rb