[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02887] Re: Just one more wafer thin mint....

From: Hugh Sasse Staff Elec Eng <hgs@...>
Date: 2000-05-18 13:54:09 UTC
List: ruby-talk #2887
Well, here is another:
the strip method of string removes whitespace from both ends.
Python has lstrip and rstrip as well, to do each end on its own.

http://www.python.org/doc/current/lib/module-string.html

but that is not too bad either:  sub!(/\s+$/,'') will give rstrip.

	Hugh
	hgs@dmu.ac.uk

In This Thread

Prev Next