Sha256: 600e1b5be9b65b50e436be4ba119dca4903f8409b0a1e49f4664a7b14f2abac6
Contents?: true
Size: 193 Bytes
Versions: 2
Compression:
Stored size: 193 Bytes
Contents
class Measured::CaseInsensitiveUnitSystem < Measured::UnitSystem def unit?(name) super(name.to_s.downcase) end def unit_for(name) unit_name_to_unit[name.to_s.downcase] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
measured-2.0.0.pre3 | lib/measured/case_insensitive_unit_system.rb |
measured-2.0.0.pre2 | lib/measured/case_insensitive_unit_system.rb |