Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#compactObject



2
3
4
# File 'lib/capistrano/ext/string.rb', line 2

def compact
  self.gsub(/\s+/, ' ')
end