Sha256: 762491b53df384a51f283919aa041d2cfed3ebb6219e45194b81681b46701831
Contents?: true
Size: 437 Bytes
Versions: 3
Compression:
Stored size: 437 Bytes
Contents
module ConvertUnit module PreProcess def file_path; end def load_units_symbol f = File.open(File.join(file_path, 'units_symbol.yml')) YAML.safe_load(f) end def load_available_units f = File.open(File.join(file_path, 'units.yml')) YAML.safe_load(f) end def load_conversion_rate f = File.open(File.join(file_path, 'conversion_rate.yml')) YAML.safe_load(f) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
convert_unit-1.0.0 | lib/convert_unit/pre_process/load.rb |
convert_unit-0.2.0 | lib/convert_unit/pre_process/load.rb |
convert_unit-0.1.0 | lib/convert_unit/pre_process/load.rb |