class Playbook::PbCurrency::Currency

def units_element

def units_element
  return "" if decimals == "matching" && !abbreviate && !unit
  _, decimal_part = amount.split(".")
  if unit.nil? && abbreviate == false
    decimal_part.nil? ? ".00" : ".#{decimal_part}"
  else
    abbreviate ? "#{abbreviated_value(-1)}#{unit}" : unit
  end
end