class BlankAttributes::Types::String

Public Class Methods

normalize(str) click to toggle source
# File lib/blank_attributes/types/string.rb, line 6
def normalize(str)
  return nil if str.blank?
  return str unless str.is_a?(::String)
  str
end