M
Michal Suchanek
I wonder why we do not have one. Or maybe I just overlooked something?
class String
def lstripc c = ' \r\t\n'
c = c.chr if c.kind_of? Integer
idx = 0
while c.include? self[idx]
idx += 1
end
self[idx..-1]
end
end
Thanks
Michal
class String
def lstripc c = ' \r\t\n'
c = c.chr if c.kind_of? Integer
idx = 0
while c.include? self[idx]
idx += 1
end
self[idx..-1]
end
end
Thanks
Michal