class Unitwise::Prefix
A prefix can be used with metric atoms to modify their scale.
Public Class Methods
data()
click to toggle source
The data loaded from the UCUM spec files @api semipublic
# File lib/unitwise/prefix.rb, line 8 def self.data @data ||= YAML.load File.open(data_file) end
data_file()
click to toggle source
The location of the UCUM spec prefix data file @api semipublic
# File lib/unitwise/prefix.rb, line 14 def self.data_file Unitwise.data_file 'prefix' end