Method: Quantify::Unit::Base#refresh_attributes
- Defined in:
- lib/quantify/unit/base_unit.rb
#refresh_attributes ⇒ Object
Refresh the name, symbol and label attributes of self with respect to the configuration found in Quantify.use_superscript_characters?
185 186 187 188 189 |
# File 'lib/quantify/unit/base_unit.rb', line 185 def refresh_attributes self.name = name self.symbol = symbol self.label = label end |