Method: String#unindent!
- Defined in:
- lib/strokedb/core_ext/string.rb
#unindent! ⇒ Object
47 48 49 |
# File 'lib/strokedb/core_ext/string.rb', line 47 def unindent! self.gsub!(/^\n/, '').gsub!(/^#{self.match(/^\s*/)[0]}/, '') end |