Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/vlad.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#cleanupObject



79
80
81
82
83
84
85
# File 'lib/vlad.rb', line 79

def cleanup
  if ENV['FULL'] then
    gsub(/\s+/, ' ').strip
  else
    self.gsub(/(\n|\s)+/, ' ')[/\A.*?(\.|\z)/]
  end
end