6 lines
78 B
Ruby
6 lines
78 B
Ruby
![]() |
class String
|
||
|
def undent
|
||
|
gsub /^.{#{slice(/^ +/).length}}/, ''
|
||
|
end
|
||
|
end
|