lib/unit_measurements/measurement.rb in unit_measurements-3.4.0 vs lib/unit_measurements/measurement.rb in unit_measurements-3.4.1
- old
+ new
@@ -80,13 +80,9 @@
source, target = input.match(CONVERSION_STRING_REGEXP)&.captures
target ? _parse(source).convert_to(target) : _parse(source)
end
- def name
- to_s.split("::").last.underscore.humanize.downcase
- end
-
private
def _parse(string)
quantity, unit = Parser.parse(string)