Module: NWN::Gff::CexolocstrValue

Defined in:
lib/nwn/gff/cexolocstr.rb

Instance Method Summary collapse

Instance Method Details

#compact!Object

Removes all nil and empty strings.



23
24
25
26
27
# File 'lib/nwn/gff/cexolocstr.rb', line 23

def compact!
  self.each {|lid,str|
    self.delete(lid) if str.nil? || str.empty?
  }
end