Exception: UnitMeasurements::BlankUnitError
- Defined in:
- lib/unit_measurements/errors/blank_unit_error.rb
Overview
The UnitMeasurements::BlankUnitError
class represents an error that occurs when trying to initialize the Measurement
with a blank unit.
Instance Method Summary collapse
-
#initialize ⇒ BlankUnitError
constructor
Initializes a new
BlankUnitError
instance.
Constructor Details
#initialize ⇒ BlankUnitError
Initializes a new BlankUnitError
instance.
17 18 19 |
# File 'lib/unit_measurements/errors/blank_unit_error.rb', line 17 def initialize super("Unit cannot be blank.") end |