Method: Quantify::Unit::Base#canonical_label=

Defined in:
lib/quantify/unit/base_unit.rb

#canonical_label=(new_label) ⇒ Object

Set the canonical unit label - the unique unit identifier - to a new value



249
250
251
252
253
# File 'lib/quantify/unit/base_unit.rb', line 249

def canonical_label=(new_label)
  unload if loaded?
  self.label = new_label
  load
end