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