class String
def dedent
lines = self.split(/[\x0a\x0d]/);
...
Ruby On ruby dedent whitespace in a...
by dreftymac.myopenid.com,
March 07, 2010 14:36
def dedent()
sRaw = self;
sep = "\n";
...
Ruby ruby dedent whitespace in a...
by dreftymac.myopenid.com,
March 05, 2010 16:37,
4 refactorings, tagged with string, ruby, monkeypatch
Remove leading whitespace f...
def splitlines()
sraw = self.to_s
sraw = sraw.gsub(/\r\n/,"\n");
...
Ruby line up delimited text into...
by dreftymac.myopenid.com,
January 11, 2010 17:02,
No refactoring, tagged with ruby, formatting, delimited, pretty
allow any character(s) as t...
modified to handle blank lines