Module: Cleaners::Strip
- Defined in:
- lib/data_cleansing/cleaners.rb
Overview
Strip leading and trailing whitespace
Class Method Summary collapse
Class Method Details
.call(string) ⇒ Object
5 6 7 8 9 |
# File 'lib/data_cleansing/cleaners.rb', line 5 def self.call(string) return string unless string.is_a?(String) string.strip! || string end |