Sha256: 7e3679b5e11cd302a353b61e5035231476afa9d8d9f731c69eb6073a44077031

Contents?: true

Size: 245 Bytes

Versions: 8

Compression:

Stored size: 245 Bytes

Contents

# frozen_string_literal: true
module Measured
  class UnitAlreadyAdded < UnitError
    attr_reader :unit_name

    def initialize(unit_name)
      super("Unit #{unit_name} has already been added.")
      @unit_name = unit_name
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
measured-3.1.0 lib/measured/unit_already_added.rb
measured-3.0.0 lib/measured/unit_already_added.rb
measured-2.8.2 lib/measured/unit_already_added.rb
measured-2.8.1 lib/measured/unit_already_added.rb
measured-2.8.0 lib/measured/unit_already_added.rb
measured-2.7.1 lib/measured/unit_already_added.rb
measured-2.7.0 lib/measured/unit_already_added.rb
measured-2.6.0 lib/measured/unit_already_added.rb