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/

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de