6 lines
79 B
Ruby
Raw Normal View History

2010-02-27 17:26:27 +00:00
class String
def undent
gsub(/^.{#{slice(/^ +/).length}}/, '')
2010-02-27 17:26:27 +00:00
end
end