Class: Unitwise::Prefix
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
all, find, #initialize, #names=, #slugs, #to_s
Constructor Details
This class inherits a constructor from Unitwise::Base
Class Method Details
.data ⇒ Object
5 6 7 |
# File 'lib/unitwise/prefix.rb', line 5 def self.data @data ||= YAML::load File.open(data_file) end |
Instance Method Details
#scalar=(value) ⇒ Object
13 14 15 |
# File 'lib/unitwise/prefix.rb', line 13 def scalar=(value) @scalar = value.to_f end |