# frozen_string_literal: true NilClass.class_eval do unless method_defined?(:usd_to_i) # :nodoc: def usd_to_i nil end end end String.class_eval do unless method_defined?(:usd_to_i) # :nodoc: def usd_to_i gsub(/[$,]/, '').to_i end end end