Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/vlad.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#cleanup ⇒ Object
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 |