Michael Morgan 3ea550100f extract undent test to test case
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-17 21:13:16 -07:00

6 lines
78 B
Ruby

class String
def undent
gsub /^.{#{slice(/^ +/).length}}/, ''
end
end