class Realize::Format::RemoveWhitespace
This transformer takes in a value and replaces any whitespace characters (trnfv) with a blank space.
Public Instance Methods
transform(_resolver, value, _time, _record)
click to toggle source
# File lib/realize/format/remove_whitespace.rb, line 17 def transform(_resolver, value, _time, _record) value.to_s.gsub(/\s+/, ' ') end