lib/measured/case_insensitive_unit.rb in measured-2.0.0.pre1 vs lib/measured/case_insensitive_unit.rb in measured-2.0.0.pre2

- old
+ new

@@ -1,13 +1,5 @@ class Measured::CaseInsensitiveUnit < Measured::Unit - def initialize(name, aliases: [], value: nil) - super(name.to_s.downcase, aliases: aliases.map(&:to_s).map!(&:downcase), value: value) - end - - def name_eql?(name_to_compare) - super(name_to_compare.to_s.downcase) - end - - def names_include?(name_to_compare) - super(name_to_compare.to_s.downcase) + def initialize(name, aliases: [], value: nil, unit_system: nil) + super(name.to_s.downcase, aliases: aliases.map(&:to_s).map!(&:downcase), value: value, unit_system: unit_system) end end