ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
lose the first character
by Colin Summers other posts by this author
Jun 14 2007 5:35PM messages near this date
Re: class destruction (evil genius metaprogramming) | Re: lose the first character
r = r.reverse.chop.reverse  # remove the first character

That works, but I bet there's a nicer method. What do people use? I
thought there would be a pohc method (chop, in reverse).

Thanks.

(pickaxe is up in the other window, I see other ways, but I am curious
if people use one clear word, like chop!)
Thread:
Colin Summers
Trans
Sammy Larbi
Daniel DeLorme
Joel VanderWerf
John Joyce
Bertram Scharpf
John Joyce
Florian Assmann

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved