module StringExtensions

Public Instance Methods

undent() click to toggle source
# File lib/utility.rb, line 3
def undent
  gsub(/^.{#{(slice(/^ +/) || '').length}}/, '')
end