class Playbook::PbCurrency::Currency

def units_element

def units_element
  return "" if decimals == "matching" && !abbreviate && !unit
  if unit.nil? && !abbreviate
    if decimals == "matching"
      ""
    else
      ".#{decimal_value}"
    end
  else
    abbreviate ? "#{abbreviated_value(-1)}#{unit}" : unit
  end
end