Class: Realize::Format::RemoveWhitespace
- Inherits:
-
Object
- Object
- Realize::Format::RemoveWhitespace
- Defined in:
- lib/realize/format/remove_whitespace.rb
Overview
This transformer takes in a value and replaces any whitespace characters (trnfv) with a blank space.
Instance Method Summary collapse
Instance Method Details
#transform(_resolver, value, _time, _record) ⇒ Object
17 18 19 |
# File 'lib/realize/format/remove_whitespace.rb', line 17 def transform(_resolver, value, _time, _record) value.to_s.gsub(/\s+/, ' ') end |