B
Bob Hutchison
irb(main):001:0> str = "now is the"
=> "now is the"
irb(main):002:0> str[-10..-1]
=> "now is the"
So I really see no need for a special method to obtain the last x
bytes of a string.
str[-100..-1]
=> nil
Cheers,
Bob
----
Bob Hutchison -- tumblelog at <http://
www.recursive.ca/so/>
Recursive Design Inc. -- weblog at <http://www.recursive.ca/
hutch>
-- works at <http://www.recursive.ca/>