Method: Measured::CycleDetected#initialize
- Defined in:
- lib/measured/cycle_detected.rb
#initialize(unit) ⇒ CycleDetected
Returns a new instance of CycleDetected.
6 7 8 9 |
# File 'lib/measured/cycle_detected.rb', line 6 def initialize(unit) super("The following conversion introduces cycles in the unit system: #{unit}. Remove the conversion or fix the cycle.") @unit = unit end |