Method: IsoDoc::Function::Utils#empty2nil
- Defined in:
- lib/isodoc/function/utils.rb
#empty2nil(str) ⇒ Object
161 162 163 164 |
# File 'lib/isodoc/function/utils.rb', line 161 def empty2nil(str) !str.nil? && str.is_a?(String) && str.empty? and return nil str end |