Method: Pismo::Reader::Base#strip

Defined in:
lib/pismo/reader/base.rb

#strip(s) ⇒ Object

Remove leading and trailing spaces on lines throughout a string (a bit like String#strip, but for multi-lines)



254
255
256
# File 'lib/pismo/reader/base.rb', line 254

def strip(s)
  s.gsub(/^\s+/, '').gsub(/\s+$/, '')
end