Class: Deidentify::Replace
- Inherits:
-
Object
- Object
- Deidentify::Replace
- Defined in:
- lib/deidentify/replace.rb
Class Method Summary collapse
Class Method Details
.call(old_value, new_value:, keep_nil: true) ⇒ Object
5 6 7 8 9 |
# File 'lib/deidentify/replace.rb', line 5 def self.call(old_value, new_value:, keep_nil: true) return old_value if old_value.blank? && keep_nil new_value end |