From: Robert Klemme on
2009/12/1 Bertram Scharpf <lists(a)bertram-scharpf.de>:
> Hi,
>
>
> a month ago, there was a discussion about what is the best way to
> get a string's tail end. There were just some solutions like
>
>  str[-i,i]
>  str[-i..-1]
>
> Those have some problems. They're not quite fast, they don't
> return proper results for i>length.
>
> Some time ago I wrote a method String#tail that has less than 20
> lines of code. I decided to make an own project of it.
>
> Step 1.0, of course, includes String#notempty?.
>
>  http://raa.ruby-lang.org/project/step/

Oh, and I thought you implemented STEP in Ruby:

http://de.wikipedia.org/wiki/Standard_for_the_exchange_of_product_model_data

;-)

Cheers

robert


--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/