Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rubocop/cask/extend/string.rb
Overview
Utility method extensions for String
Instance Method Summary collapse
Instance Method Details
#undent ⇒ Object
3 4 5 |
# File 'lib/rubocop/cask/extend/string.rb', line 3 def undent gsub(/^.{#{(slice(/^ +/) || '').length}}/, '') end |