class String

Utility method extensions for String

Public Instance Methods

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